1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
damaskus [11]
3 years ago
13

An online bank wants you to create a program that shows prospective customers how their deposits will grow. Your program should

prompt the user for initial balance and the annual interest rate in percent. Choose double datatypes for variables to store initial balance and annual interest rate that you received from the user. Interest is compounded monthly. Computer and print out the balances after the first three months.
Test your program when user gives initial balance as 1000 and interest rate as 6.
Computers and Technology
1 answer:
Sauron [17]3 years ago
6 0

Answer:

Written in C++

#include<iostream>

#include<math.h>

using namespace std;

int main(){

double Amount, Rate;

cout<<"Initial Amount: ";

cin>>Amount;

cout<<"Rate: ";

cin>>Rate;

for(int i =1;i<=3;i++){

Amount = Amount *(pow((1+Rate/100),1));

cout<<"Balance: "<<Amount<<endl;

}

return 0;

}

Explanation:

The program was written in C++ (The line by line explanation is as follows)

This line declares Amount and Rate as double

double Amount, Rate;

This line prompts user for Amount

cout<<"Initial Amount: ";

This line gets input for Amount

cin>>Amount;

This line prompts user for Rate

cout<<"Rate: ";

This line gets input for Rate

cin>>Rate;

The following iteration calculates and prints the new balance at the end of each month using compound interest formula

for(int i =1;i<=3;i++){

Amount = Amount *(pow((1+Rate/100),1));

cout<<"Balance: "<<Amount<<endl;

}

You might be interested in
Readability is the level of vocabulary used on the page. True or false
konstantin123 [22]

Answer:

FALSE....john has no idea what hes talking about. i knew this was false yet i looked it up and got it wrong anyway because of john its freaking false

Explanation:

8 0
3 years ago
Bloxburg Build can anyone help me
postnew [5]
Om I would love to helpppp friend me- keabbykelp
5 0
3 years ago
Read 2 more answers
PLEASE ANSWER ASAP
kompoz [17]
D, an acrostic is a "a poem, word puzzle, or other composition in which certain letters in each line form a word or words."
3 0
3 years ago
Read 2 more answers
Define reading and writing that regards storage​
Naily [24]

Answer:

Reading and writing on computers and other gadgets require storage.

HOPE THIS HELPS

HAPPY THANKSGIVING

4 0
3 years ago
You have been tasked with designing an Ethernet network. Your client needs to implement a very high-speed network backbone betwe
lorasvet [3.4K]

Answer:

A and C

Explanation:

From the above scenario, the Ethernet standards that meet the above guidelines are:

A. 1000BaseSX; and

C. 10GBaseSR.

Cheers

3 0
3 years ago
Other questions:
  • nancy finds it difficult to locate emails in her inbox . what action should she take to locate a particular type of email instan
    12·1 answer
  • (tco 9) the most common protocol(s) used for sending and retrieving e-mail is(are) _____.
    11·1 answer
  • What division monitors the sale and registration of vehicles and vessels within the state?
    15·1 answer
  • WILL GIVE BRAINLIEST!!!
    15·2 answers
  • The concept of a process in an operating system embodies two primary characteristics, one of which is:
    15·1 answer
  • What affect does the corona virus have the United States economy
    7·1 answer
  • Discuss the importance of top management commitment and the development of standards for successful project management. Provide
    10·1 answer
  • Convert 128 GB into KB​
    8·2 answers
  • Complete the sentence.
    10·1 answer
  • A__ is a part of a GUI that allows a specific type of interaction with the user.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!