#include <stdio.h> #include <math.h> int main () { // requirements: v5p80: known p = (1 + r) ^ n, n = 10 when required, r is the number points a float R & lt = 0.07 ; a float P = ( a float ) POW ( . 1 + R & lt, 10 ); the printf ( " P:. %% 0F% \ n- " , P * 100 ); return 0 ; }
. 1 #include <stdio.h> 2 #include <math.h> . 3 . 4 int main () { 5 // interest count 6 @ a deposit of 5 years; 1000 * (. 1 + n-R & lt *) . 7 a float SUM1 = 1000 * ( 1 + 5 * 0.03 ); 8 // preexisting biennial, and then deposit principal and interest after the expiration of 3 years; . 9 a float SUM2 = 1000 * ( 1 + 2 * 0.021 ) * ( 1 + 3 * 0.0275 ); 10 // pre-existing three-year period, then deposit the biennium . 11 a float sum3 = 1000 * ( . 1 + . 3 * 0.0275 ) * ( . 1 + 2 * 0.021 ); 12 is // save 5 times for 5-year 13 is a float SUM4 = 1000 * POW ( . 1 + 0.015 , 5 ); 14 // survival of each of quarter 15 a float sum5 = 1000 * POW ( . 1 + 0.0035 / . 4 , . 4 * . 5 ); 16 // 1150.00 17 // 1127.96 18 // 1127.96 19 // 1077.28 20 // 1017.65 21 printf("%.2f\n%.2f\n%.2f\n%.2f\n%.2f\n", sum1, sum2, sum3, sum4, sum5); 22 return 0; 23 }
...