Question: 1. Write a C Program, algorithm and flow chart for the below problem. A bank wants a program that determines the yearly interest earned on

1. Write a C Program, algorithm and flow chart for the below problem. A bank wants a program that determines the yearly interest earned on a guaranteed investment certificate (GIC), given a number of years. If the investment is for five years, the interest is 8.2% per year, if it is for one year, the interest is 5%. Print on the screen "Invalid data. Please try again later.", if the user enters any value other than 1 or 5 for the number of years of investment. Write a complete C program to determine the amount of interest earned per year. Figure 1 shows three samples input/output of the program. Hint: Interest = amount percentage . Enter amount of investment: 2000 Enter years of investment [ 1 or 5 ]: 5 The bank will pay you $164.00 interest per year. Enter amount of investment: 2000 Enter years of investment [ 1 or 5 ]: 1 The bank will pay you $104.00 interest per year
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
