Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
1.6k views
in Computer by (30 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 (47.5k points)

A program is given as:

 

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.

Categories

...