subject

Write a program that implements the algorithm that you designed in Exercise 34 of this chapter (Chapter 4). The instructions to Exercise 34 have been posted below for your convenience. Exercise 34 Suppose that billingAmount is a double variable, which denotes the amount you need to pay to the department store. If you pay the full amount, you get $10.00 or 1% of the billingAmount, whichever is smaller, as a credit on your next bill; If you pay at least 50% of the billingAmount, the penalty is 5% of the balance; If you pay at least 20% of the billingAmount and less than 50% of the billingAmount, the penalty is 10% of the balance; otherwise the penalty is 20% 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.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
In outlook how can cherie look at the details of an event that appears on the month view of her calendar? check all that apply. by switching to the detail view by switching to the week view by switching to the day view by right-clicking on the event by double-clicking on the event by highlighting the event
Answers: 2
question
Computers and Technology, 23.06.2019 12:00
What does the level 1 topic in a word outline become in powerpoint? a. first-level bullet item b. slide title c. third-level bullet item d. second-level bullet item
Answers: 1
question
Computers and Technology, 25.06.2019 08:50
99 points asap ! select the mathematical statement that is true. a.22 % 2 > −3 b.22 % 2 < 5 c.22 % 2 == 4 d.22 % 2 ! = 1 this is for my python coding class you
Answers: 1
question
Computers and Technology, 25.06.2019 12:00
Understanding the or how each piece of the production process leads to customer satisfaction at the end is another important skill related to workflow.
Answers: 1
You know the right answer?
Write a program that implements the algorithm that you designed in Exercise 34 of this chapter (Chap...
Questions
Questions on the website: 13722362