Question: C++, PLEASE WRITE THE CODE AS SIMPLE AS POSSIBLE WITHOUT USING ARRAYS Please write a modular program that calculates the total amount of interest earned

C++, PLEASE WRITE THE CODE AS SIMPLE AS POSSIBLE WITHOUT USING ARRAYS

Please write a modular program that calculates the total amount of interest earned for a group of bank accounts. The user should be allowed to specify the number of bank accounts. The amount of interest earned on a single account can be calculated by multiplying the account balance by the percent interest. Use the information in the table below to calculate the interest on an account.

Type of Account

Account Balance

Percent Interest

Checking

< $100

0

Checking

$100 - $1,000

.001

Checking

> $1,000

.002

Savings

<= $100

0

Savings

> $100

.015

Prompt the user for the type of account and the account balance. Use a menu to prompt the user for the type of account rather than letting them type in checking or savings.

Validate the user's input for account balance so that values less than 0 are not accepted.

Calculate the interest earned for each bank account.

Use global constants for the percent interest.

Calculate and display the total amount of interest earned on all the accounts.

Dollar amounts should be properly formatted.

NOTE: Make sure your modular program includes some functions that accept input and return values and don't use arrays.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!