admin管理员组

文章数量:1558103

*2.21(金融应用:计算未来投资回报)编写程序,读取投资总额、年利率和年数,然后使用下面的公式显示未来投资回报金额:

未来投资回报金额 = 投资总额 (1+月利率)^ (年数  12)

例如:如果输入的投资金额为1000,年利率为3.25%,年数为1,那么未来投资回报金额为1032.98。

下面是一个运行示例:

Enter investment amount :1000.56
Enter annual interest rate in percentage :  4.25
Enter number of year : 1

 

*2.21(Financial application: calculate future investment value) Write a program that reads in investment amount, annual interest rate, and number of years and displays the future investmen

本文标签: 第二章二十一投资回报未来金融