subject

Suppose billingAmountis a doublevariable, which denotes the amount you need to pay to the department store. If you pay the full amount, you get $10.00or 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 unpaid balance. If you pay at least 20%of the billingAmountand less than 50%of the billingAmount, the penalty is 10%of the unpaid balance; otherwise the penalty is 20%of the unpaid 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 remaining balance. If the amount is not paid in full, the algorithm should also output the penalty amount.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:20
What is the full meaning of rfid in computer
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
Need asap write a short paper describing the history and differences between six sigma, waterfall, agile, and scrum models. understanding these models can give you a good idea of how diverse and interesting it development projects can be. describe what the rationale for them is and describe their key features. describe the history behind their development. at least 400 words
Answers: 1
question
Computers and Technology, 23.06.2019 10:30
How would you categorize the software that runs on mobile devices? break down these apps into at least three basic categories and give an example of each.
Answers: 1
question
Computers and Technology, 24.06.2019 15:00
Universal windows platform is designed for which windows 10 version?
Answers: 1
You know the right answer?
Suppose billingAmountis a doublevariable, which denotes the amount you need to pay to the department...
Questions
question
Mathematics, 08.09.2019 22:20