Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Suppose that billing amount denotes the amount you need to pay to the department store. If you pay the full amount, you get $10.00 or
Suppose that billing amount denotes the amount you need to pay to the department store. If you pay the full amount, you get $10.00 or 1.00% of the billing amount, whichever is smaller, as a credit on your next bill; If you pay at least 50% of the billing amount, the penalty is 5% of the balance, If you pay at least 20% of the billing amount and less than 50% of the billing amount, the penalty is 10% of the balance, otherwise the penalty is 20% of the balance.
Write a C++ program that prompts the user to enter the billing amount and the desired payment. The algorithm then calculates and outputs the credit or the remaining balance. If the amount is not paid in full, the algorithm should also output the penalty amount:
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