|
|
|
|
1. Write a program to compute compound interest. Have the user input an amount and the current annual interest rate, and let the program output the value after a specified number of years. (As I recall from the semester I dozed through economics, there is an algebraic formula for this operation; don't use it.) Explore the effect of daily compounding, in which 1/365 of the annual interest rate is applied 365 times per year, as opposed to annual compounding. You may wish to compare the program's results with those given by your bank. 2. Write a program for scoring a gymnastics event. For each of the contestants, each of the judges expresses a rating of the performance with a number between zero and ten. The contestant's score is determined by first throwing out the highest and lowest rating, and then averaging the remaining ones. The program should collect the various ratings and then print out a ranking of the contestants. (Note - There is no built-in function for finding the maximum or minimum of an array.) |
|
|