英语翻译Write a program to compute the interest due,total amount

pumpkin派2022-10-04 11:39:541条回答

英语翻译
Write a program to compute the interest due,total amount due,and the minimum payment for a revolving credit account.
The program accepts the account balance as input,then adds on the interest to get the total amount due.The rate schedules are the following:
The interest rate is 1.5% on the first $1000 and 1% on any amount over that.The minimum payment is the total amount due if that is $10 or less; otherwise it is $10 or 10% of the total amount owed,whichever is larger.
Your program should include a loop that lets the user repeat this calculation until the user says she or he is done.

已提交,审核后显示!提交回复

共1条回复
小雨点儿 共回答了27个问题 | 采纳率88.9%
写一个程序计算的利息,总金额,和最低付款为循环信用证.
程序接受输入的帐户余额,然后加上利息得到的总金额.率表如下:
利率是1.5%,第一个1000美元和1%的任何金额超过.最小支付应付的总额是10美元或更少;否则它是10美元或10%的总金额,以较大者为准.
你的程序应包括一个循环,让用户重复这一计算到用户说她或他了.
1年前

相关推荐