Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Develop an algorithm that inputs the number FD total to be computed, and goes on inputting sets of initial deposit amount and deposit period for
Develop an algorithm that inputs the number FD total to be computed, and goes on inputting sets of initial deposit amount and deposit period for calculations. Upon receiving each set of deposit amount and period, the program calculates and displays the FD interest and total payable upon maturity, based on Table 1. Table 1 Deposit period (months) Annual interest rate (%) 1-2 1.60 3-5 1.85 6 and above 2.20 FD interest is calculated by, deposit_period FD_interest = deposit_amountx- -x anuual_interest rate 12 A sample program output is given in figure below (texts in bold are user inputs). Enter number of FDs: 2 Enter deposit amount (RM) and period (months): 100000 3 FD interest = RM462.50 Total payable at maturity = RM100462.50 Enter deposit amount (RM) and period (months): 50000 12 FD interest = RM1100.00 Total payable at maturity = RM51100.00 (a) Draw a flowchart for the above task. [5 marks] (b) Based on the flowchart, write a complete C program. [10 marks]
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started