New here and dont know where to ask for help
this is my problem
this is what it says if you can could you complete it so i can work on with coding it?
write a program in pseudocode that helps the user add up coins in there piggy bank.the program should ask:"how many pennies","how many two pennies","how many 5 pences"ect then it should give the total value of the piggy bank.
definition of pseudocode
a notation resembling a simplified programming language, used in program design.
this would be the building blocks of my software.
Re: New here and dont know where to ask for help
Firstly, have a look at http://forums.codeguru.com/showthrea...ork-assignment
Have you been given a notation for writing the required pseudocode?
Have a look at http://en.wikipedia.org/wiki/Pseudocode
What programming language will you be using?
A program design is basically a set of English (or other natural language) statements that when followed will produce the required outcome. For something like this, a possible first step would be to state how you would do it using a pen and paper and then refine this into a program design, psesdocode and then the actual program.
Basically, the steps to produce a working program are
Code:
specify input requirements
specify output requirements
define required algorithms
do {
produce program design
produce pseudocode (if required)
produce code in required langauge
test program
debug program
} while program_not_working
If you need further guidance with this, post the pseudocode you have. As this is an assignment, we won't write this for you but will provide guidance on what you post.
Have fun! :)
Re: New here and dont know where to ask for help
I agree with 2kaud - simply write out in English (or your native language) what you would need to do to add up the money in the piggy bank. That will be the first step towards pseudocode. For example, if I wanted to count number of cats and dogs at the kennel, I'd"
Go Kennel
Enter first room
count number of cats and add it to the total of all cats
count number of dogs and add it to the total of all dogs
Go to the next room
Keep doing this until all room checked and final
Present totals