Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I have posted this question twice and the solutions presented did not produce the required output please can somebody review appropriately and profer the accurate

I have posted this question twice and the solutions presented did not produce the required output please can somebody review appropriately and profer the accurate solution thanks????

C++ Ex 4-12

Solve a program that implements the algorithm that you designed inExercise 34of this chapter (Chapter 4). The instructions toExercise 34have been posted below for your convenience.

Exercise 34

Suppose thatbillingAmountis adoublevariable, which denotes the amount you need to pay to the department store. If you pay the full amount, you get$10.00or1%of thebillingAmount, whichever is smaller, as a credit on your next bill; If you pay at least50%of thebillingAmount, the penalty is5%of the balance; If you pay at least20%of thebillingAmountand less than50%of thebillingAmount, the penalty is10%of the balance; otherwise the penalty is20%of the balance. Design an algorithm 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.

Examples of the program are shown below:

Enter the billing amount: 100000 Enter the payment amount: 18000 The penalty added to the next bill is: $16400.00 The unpaid balance including the penalty is: $98400 Enter the billing amount: 10000 Enter the payment amount: 10000 Thank you for paying the full amount. You will receive $10.00 credit on your next bill. 

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Quantitative Methods For Business

Authors: David Anderson, Dennis Sweeney, Thomas Williams, Jeffrey Cam

12th Edition

840062338, 840062346, 9780840062338, 978-0840062345

More Books

Students also viewed these General Management questions