Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Excel As Your Database

Authors: Paul Cornell

1st Edition

1590597516, 978-1590597514

More Books

Students also viewed these Databases questions

Question

6. Explain the strengths of a dialectical approach.

Answered: 1 week ago