Answered

Design the logic (pseudocode or flowchart) for a program that gets as input your current credit card balance, the total dollar amount of new purchases, and the total dollar amount of all payments. The algorithm computes the new balance, which this time includes an 8% interest charge on any unpaid balance below $100, 12% interest on any unpaid balance between $100 and $500, inclusive, and 16% on any unpaid balance above $500. Use named constants where applicable. Make sure to hand check your algorithm with input and expected output. Please put your name on the top of your paper.

Answer :

Answer:

Pseudocode:

Start

Double balance

READ the current credit card balance

Store it in balance variable

Double newPurchaseAmount

READ new purchased amounts

Double allPaymentAmount

Read all payment amounts

Double newBalance=(balance+newPurchaseAmount)-allPaymentAmount

If(newBalance<100)

   newBalance=newBalance+(newBalance*0.08)

If(newBalance>100 && newBalnce <=500)

   newBalance=newBalance+(newBalance*0.12)

If(newBalance>500)

   newBalance=newBalance+(newBalance*0.16)

11. stop

Explanation:

Other Questions