Computer Science Canada class porj. im having trouble with |
Author: | hheellpp [ Wed May 25, 2005 8:21 am ] |
Post subject: | class porj. im having trouble with |
Cafeteria Selections Program - This program would permit studentsto choose their lunch purchases from a menu in the cafeteria. (a test fite {notepad} that is called up, with lines sumin like this: Burger 2.33) It calculates the tax{im in ontario... 7%tax on GST and 8% PST} on taxable items (candy, pop), and presents the user with a total. Asks them how they will be able to pay.... just for the user to enter an amount of money so that u can calculate the amout of change. The program accepts a tendered amount and computes and outputs change downto the actual coins and bills involved. An added inventory component could keep a running total of individual items purchased. and when the program ends... it would be nice if it looked sumin like a bill u get in the store... |
Author: | Delos [ Wed May 25, 2005 8:46 am ] |
Post subject: | |
Ok...thanks for the description. Here's the next couple of things you should do: - create some pseudo-code - code as much of it as you can - comment your code - if you encounter any problems, post up the section of the code that you're having trouble with, including a description of what it's supposed to do, and possibly what it's doing wrong. If you're nice, you'll also ensure that the code runs (i.e., if you cut out a section to show us, you'll make sure all vars are declared etc). |
Author: | Malazan [ Fri Jun 03, 2005 9:32 am ] | ||
Post subject: | |||
I actually did this program in class. Here you enter the food, then it calculates the total cost + PST + GST. Also does tip too. If you want a list to make, do a case construct.
There you go ![]() |