Help with programs
My teacher must think Im inhuman. I have about a week to complete seven programs. I am totaly lost. Source code would be useful, or just hints and help. I need to do the following
1 convert meters to yards, feet ,and inches
2 Print out a bow tie made of asterisks
3 reduce an inputed fraction
4 search and sort a list of names from a file
5 make a sequential stack
6 make a linked queue
7 make a tree
I am totaly lost and I dont really have an opportunity to ask him for help.
Totally dude! I'll finish all the problems for you!
I am too having trouble, but not as bad as you. I don't know much, but I can help you with no. 1.
Have you found out how to convert the units. If not try here
And try here to find out how to devide with getting remainders instead of decimel places.
But unforutnately I can't find a REALLY, REALLY, REALLY useful tutorial site for arrays.
Make some effort. We won't write your homework for you.
The people here are willing to help you with hints and suggestions. We might even write a couple of lines of code or point-out a bug in your code for you. But, you will have to do most of the work yourself. That's our style... We like solving puzzles, and we want you to solve your puzzle yourself too!
Please read the Homework Policy and the Forum Guidlines.
Show us what you've got so far. If you can't get started, ask "how do I get started?"
You will also get better responses if you create a new thread for each program.
If you've been reading your book and doing your homework, the first three should be fairly easy for you. The others are a bit more involved, but I assume you've covered the material.
Seven programs in seven days does seem like a lot. It's probably about right for a college course, but a bit much if it's a high school class. I suspect programming requires more homework hours than your average class... We have all spent lots of "extra" hours debugging some "simple" problem, or figuring-out how to get something to work.
DougDbug I havent seen you on here in ages, Good to hear you again
He's been lurking, making his calcuated move to strike back on the boards LOL
I wish that I had a book to help me.
Yeah, I'm with these guys. I ask for a lot of help on here, but only when I'm stuck and have tried for a while to fix the problem. Nesagsar, if you start and try to attack the problem, and show that you did, you'll get help. Also, what do you mean, you wish you had a book? You don't have a text for your class?
A few hints to get you started:
1) convert meters to yards, feet ,and inches - http://www.sciencemadesimple.com/conversions.html
2) Print out a bow tie made of asterisks - play with endl and " " (blank spaces) to get the desired effect
3) reduce an inputed fraction - division by the lower number in the fraction, whether it be numerator or denominator
4) search and sort a list of names from a file - to read from file, see http://www.cplusplus.com/ref/iostream/fstream/. As you read them in, put them in a container of your choice - http://www.cppreference.com/cppvector/index.html or maybe http://www.cplusplus.com/doc/tutorial/arrays.html. Also see 'search' and 'sort' here: http://www.fredosaurus.com/notes-cpp...rt-arrays.html and here: http://www.informit.com/articles/art...p?p=25281&rl=1 for arrays, and for vector search() and sort(): http://www.java2s.com/Code/Cpp/Data-...chinvector.htm and http://www.thescripts.com/forum/thread61134.html.
5) make a sequential stack - http://www.cppreference.com/cppstack/index.html
6 make a linked queue - http://library.thinkquest.org/C005618/text/queues.htm
7 make a tree - http://math.hws.edu/eck/cs225/s03/binary_trees/
Thank you, that is helpfull, and No we do not have a textbook for this class. We are supposed to find our own internet resources.
Look at this sites tutorials ;)