i have a project in my Object Oriented Programming. It is about making a cash register
ALGORITHM
1. Enter the item name
2. enter how many item bought
3. enter price of item
4. compute (Total price = item price * number of item)
5. display if there are another item to be bought
6. if yes go back to 1
7. compute 9amount to pay = total price of 1st item + ... total price of last item)
8. display total price to pay
9. Enter amount paid by the customer
10. display change (if Any)
11. Enter if there are another customer
it would mean a lot to me if you could help me. Thank you
1
Expert's answer
2012-03-20T12:42:20-0400
Create next variables and take it from output:
float totalprice cycles { input( string name; int count float price) totalprice = totalprice+count*price; } output(totalprice); input(float customerpaid) output(customerpaid - totalprice) input(is another customer) if yes go to begin
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment