E
eli m
Any small program ideas? I would prefer to stick to command line ones. Thanks.
Any small program ideas? I would prefer to stick to command line ones. Thanks.
How about these two:
- simulation of a street crossing with green/red lights allowing cars
and pedestrians to pass in one direction then another
- simulation of an elevator in a building: buttons on each floor to
call the elevator, buttons inside to go to a particular floor,
multiple floors can be selected at the same time, creating a queue
of floors to go to.
-m
How about these two:
- simulation of a street crossing with green/red lights allowing cars
and pedestrians to pass in one direction then another
- simulation of an elevator in a building: buttons on each floor to
call the elevator, buttons inside to go to a particular floor,
multiple floors can be selected at the same time, creating a queue
of floors to go to.
-m
Could i make these text and not visual? That is what i am trying to do.
Any small program ideas? I would prefer to stick to command line ones. Thanks.
Thank you guys for the suggestions. Any more?
Thank you guys for the suggestions. Any more?
Some more ideas:
There are all kinds of things you could do. First, consider something
that might be useful.
1) checksum all the files in a directory tree, using various checksum
algorithms.
2) Convert one kind of file to another.
3) Calculate time between two dates
4) Write some part of a backup system. For example, copy files from a
directory tree into a specified directory, stopping when the size totals
N.N gig, and keeping track of which files have been so processed, so
that after burning that directory to DVD, you can repeat the process.
As a bonus, add a utility & datafile to the top of that directory, so
that the DVD can be self-checking.
Then try something interesting:
1) find the nth prime, for example the 1000th prime
2) Find all perfect numbers under a trillion
3) solve the puzzles on http://projecteuler.net
4) Build a spell checker, using a combination of a standard
dictionary-list and custom entries. Bonus question - Make it smart
enough to only spell-check comments and literal strings, when applied to
files with an extension of .py
There are all kinds of things you could do. First, consider something
that might be useful.
1) checksum all the files in a directory tree, using various checksum
algorithms.
2) Convert one kind of file to another.
3) Calculate time between two dates
4) Write some part of a backup system. For example, copy files from a
directory tree into a specified directory, stopping when the size totals
N.N gig, and keeping track of which files have been so processed, so
that after burning that directory to DVD, you can repeat the process.
As a bonus, add a utility & datafile to the top of that directory, so
that the DVD can be self-checking.
Then try something interesting:
1) find the nth prime, for example the 1000th prime
2) Find all perfect numbers under a trillion
3) solve the puzzles on http://projecteuler.net
4) Build a spell checker, using a combination of a standard
dictionary-list and custom entries. Bonus question - Make it smart
enough to only spell-check comments and literal strings, when applied to
files with an extension of .py
How hard would it be to change one file to another and would it be a
small-medium sized program?
How hard would it be to change one file to another and would it be a small-medium sized program?
How do you want to change it? Like rename a file (os.rename)?
How hard would it be to change one file to another and would it be a small-medium sized program?
How do you want to change it? Like rename a file (os.rename)?
How hard would it be to change one file to another and would it be a small-medium sized program?
But to convert a DOS text file (with lines ending cr/lf) into a Unix text
file (with lines ending lf) would be a dozen lines, shrinkable to 3 with
lots of experience. (And I'd probably prefer the dozen line version)
Any other ideas?
Any small program ideas? I would prefer to stick to command line ones. Thanks.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.