Write a C++ program to help a cashier person when returning change to the customer. Your program should read two real
numbers: the amount of required money and the amount of paid money. The program outputs the change that should be returned
to the customer. Your program should display appropriate error messages for all the invalid cases such as:
• negative amount of required money
• negative amount of paid money
• paid amount less than required amount
Eng-Mohammed
0
Newbie Poster
Recommended Answers
Jump to PostWe don't do your homework for you. Make an effort to solve this simple problem and post your code here. Try working it out on paper first.
All 4 Replies
Mahnoor_1
0
Junior Poster in Training
Eng-Mohammed
0
Newbie Poster
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
David W
131
Practically a Posting Shark
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.