Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is a simple interest calculator ( no compounding ) . The user enters two inputs: the starting balance and the time period, and the

This is a "simple interest" calculator (no compounding).
The user enters two inputs: the starting balance and the time period, and the program uses a fixed
interest rate of 7.5% to determine both the total interest earned over that time period and the future
balance (starting balance plus the total interest).
The mathematics in this program are simple. In the first example below: 10000*0.075*5=3750.
Note: there is no looping or error-checking in this program.
The sample output below shows the currency values displayed with two decimal places, which your
program should also do.
Sample Output from 3 different runs:
It should be clear what parts of the samples are user input for all samples in this document.
E.g., in the first example below, the user entered 10000 and 5. All the other parts of the sample were
printed by the program.
Simple Interest Calculator
Starting balance: 10000
Time period: 5
Based on 5 time periods at 7.5% per period
Total interest = $ 3750.00
Future balance = $ 13750.00
Simple Interest Calculator
Starting balance: 53.25
Time period: 19
Based on 19 time periods at 7.5% per period
Total interest = $ 75.88
Future balance = $ 129.13
Simple Interest Calculator
Starting balance: 98765
Time period: 3
Based on 3 time periods at 7.5% per period
Total interest = $ 22222.12
Future balance = $ 120987.12

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions