Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program that will determine the change due for apurchase paid for with a

ID: 3616767 • Letter: W

Question


Write a program that will determine the change due for apurchase paid for with a $20 bill. Prompt user to enter purchase amount. Enter amount as dollarsand cents. Must be greater than zero. Must be less than or equal to 20.00

Program outputs amount of change due. Then outputs number of coins and bills of each denomination tobe returned as change. Give back the maximum number of each denomination of bill andcoin Largest to smallest $10, $5, $1, Quarters, Dimes, Nickles,Pennies nDon’t output zero amounts. A $20 purchase is a special case.
If input is valid, output thepurchase amount as dollars and cents. Format output as shown in sampleruns. Return 0 on successfulrun. Return 1 in case of error.






I don't Know how to to go aboutand write this program. This is my only my second programmingclass and the first one was easy.
Could someone give me an outline of what to do and how to goabout this, step by steps hints ?

Explanation / Answer

please rate - thanks study this until you understand it #include using namespace std; int main() { int den;   //denomination double amount; int amt; coutamount; if(amount>20)      {cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote