View Single Post
Old 05-05-2006, 02:52 PM   #1 (permalink)
verdell32
Registered User
 
verdell32's Avatar
 
Join Date: Oct 2004
Posts: 35
verdell32 is on a distinguished road
Visual Logic(Visual Designer) question

I am working on a project and I can't understand how you can use one input to calculate change.

Here is the question:
Correct Change. Write a program to assist a cashier with determining correct change. The program should have one input, the number of coins to return to the customer. The output should be the appropriate change in quarters, dimes, nickels and cents. Hint. Consider how integer division (\) and integer remainder (Mod) can be used as part of your solution.

I don't see how you can do it without two inputs like: amountTendered - amountOfSale?

And also we are using IF Conditions.
verdell32 is offline   Reply With Quote