Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c++ pls Programming Exercise 6.3 Making Change, v.3.0 Purpose. Practice writing programs that use if-statements. Modify Exercise 5.3's changeDue2.cpp, skipping lines in the Change paid
c++ pls
Programming Exercise 6.3 Making Change, v.3.0 Purpose. Practice writing programs that use if-statements. Modify Exercise 5.3's changeDue2.cpp, skipping lines in the "Change paid out" section of the output that have zero bills. Name the new program changeDue3.cpp. Requirements: same as 5.3's Making Change, with this one change: skip lines of output in the "change paid out in" section that have zero bills. Algorithm. This is only a partial algorithm, to calculate the number of bills of a certain denomination to be paid out. For example, for $100 bills to be paid out: Divide the change due by 100 to get the number of $100 bills in the change. Recalculate the change due as the remainder in the above division problem. ... If the number of $100 bills is greater than zero Output the the number of $100 bills, with a label Program I/O. Input: 2 whole numbers from a text file for the "cash payment" (one first line of the file) and for the amount "tendered" (on the second line of the file) Output: The "change due" and the numbers of each specified denomination to be "paid out", skipping zeros. Example. Here's what the output should look like, with user input in blue: Cash payment amount: 45000 Tendered amount: 100000 Change due: 55000 Change paid out in: this many ten thousand dollar bills: 5 this many five thousand dollar bills: 1 Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started