making a class after the program
Hello
I always thougth that you had to make a class before the program. Ive been ask to write the program then do the class.
Ill make this a bogus form that way it will guide me with my assignment. perhaps someone could help.
lets say piggy bank this is just a cheap example
double oldtotal, newtotal, addcoin,minuscoin;
do
print first piggybank
enter total (print total)
enter coins (print addcoin formatcurrency)
print newtotal
enter coins taken (print minuscoin format currency)
print newtotal
print anther piggy bank y/n
while = y
this is what you get when it runs
==============
total = $num
coinadded = $num
newtotal = $
minuscoin =$num
newtotal = $num
================
how do I go from this program and then create a class
just showing the new total
showing what the old total was
then determine if the new total is more or less than the old total.
anyone lend some guidence thank you very much.
how will I know if the class is right.
Im also confused if after both are written will one import the other.
thanks again
Rewind

