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 18:00
Which of the following physical laws can make the flow of water seem more realistic? a. motion b. gravity c. fluid dynamics d. thermodynamics
Answers: 2
question
Computers and Technology, 22.06.2019 19:10
10. when you create a pivottable, you need to specify where to find the data for the pivottable. is it true
Answers: 2
question
Computers and Technology, 23.06.2019 20:30
Column a of irma’s spreadsheet contains titles for each row, but her document is too big and will be printed three pages across. she wants to be sure that every page will be understood. what can irma do to with this problem?
Answers: 3
question
Computers and Technology, 24.06.2019 01:30
Suppose a cpu with a write-through, write-allocate cache achieves a cpi of 2. what are the read and write bandwidths (measured by bytes per cycle) between ram and the cache? (assume each miss generates a request for one block.)
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, 01.11.2019 00:31
question
Mathematics, 01.11.2019 00:31
question
Mathematics, 01.11.2019 00:31
Questions on the website: 13722360