0 votes
in Computer by (15 points)
Write a program to input sum, rate, time and type of Interest ('S' for Simple
Interest and 'C' for Compound Interest). Calculate and display the sum and the
interest earned.
The Simple Interest (SI) and Compound Interest (CI) of a sum (P) for a given
time (T) and rate (R) can be calculated as:
(a) SI = (p * r * t) / 100
(b) CI = P * ((1 + (R / 100))T - 1)

Please Add in comments where required and variable description at the end of the program

Note: Display the menu. Accept the user’s choice and use SWITCH CASE

Please log in or register to answer this question.

1 Answer

+2 votes
by (50.7k points)

A program is given as:


Related questions

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.