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: Obiective Suppose that billing amount denoles the amount you need to pay to the department stoece If you pay the full amount. you get $10.00 or 1.00% of the billing amount, whichever smaller, as a credit on your next bill. If you pay atleast 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 biling amount, the penalty is 10% of the balance, otherwise the penalty is 20% of the balance. Write a C++ program that prompts the to enter the billing amount and the desired payment. The algorithem then cakculates and outputs the credit or the remaining balance. If the amount is not paid ull, the algorthm should also output the penalty amount; . Takes soquential input from the uscr Calculate the payment percent, pnalty, crodit, and balance using the provided information. * Output the result to the screen as shown in the sample output below - You are also required to demonstrate the use of an algorithm in completing this assignment-meaning that you must inclade the number and short description of cach step in the program documentation (commens)...showing your stepwise approachsolving this problem. S tips at botkm Example output is shown at the end of this document, and an executable version of the completed peogram is provided for you Suppose that we have the following variables: floating point valse floating point value loating point value Losting point value Loating point alue tlearing point value pay x 10.34 penalty aynePeet Ex. 0-43 1) Prompt user to enter the billing ant. 2 Input the billing mount into the variable billingAmount )Prompthe user to input the payment 4) Ingut the payment into the variable payment, 5) Determine the unpaid balance using the formula: balance-billing amount-payment 6) Determine the percent of the billing amount made by the customer If the billing amount does not equal 0 then: Payment peecess payment billing amount Otherwise
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 with AI-Powered 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