using c++ program perform a cash egister
process having an inputted money and the total amount purchase in a store

ex.

item1:___
item2:___
item3:___
... up to
item n:___
money =___
total purchases:__
change:___

anyone can help me with this program?? thanks BIG HELP ..

Recommended Answers

All 2 Replies

If its C++ then you should post in the C++ forum.

You should also post the code that you have so far.

What you need is a float that holds the total of all the items being entered. A float to hold the amount of money the user gives. Then output the amount of money the person gave minus the total of all the items and that will give you the change.

commented: Nice +17

If its C++ then you should post in the C++ forum.

Sorry, my fault.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.