subject

Write a C++ program that accepts an amount of money on deposit and a number of years it has been on deposit (years can have decimals). It will determine the interest to be paid on the deposit based on the following schedule:#include using namespace std;int main(){ cout<<"Deposits with Interest Program"; float intRate; float deposit=0; float years=0; float interest = 0; cout<<"Please enter the amount deposited today: "; cin>> deposit ; cout<<"Please enter the number of years it has been on deposit: "; cin>> years; if(years >=5) { intRate = years*4.5/100; } else if(years>=4) { intRate = years*4/100; } else if (years>=3) { intRate = years*3.5/100; } else if (years>=2.5) { intRate = years*2.5/100; } else if (years>=1) { intRate = years*2/100; } else (years<=1); { intRate = years*1.5/100; } interest = deposit + intRate; cout<<"Your original deposit was $"<

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 17:00, laylay120
The most efficient way to establish top best possible economize position is to measure
Answers: 1
image
Computers and Technology, 21.06.2019 18:10, cbaughn11
In mathematics and computer science, a set is a collection in which order does not matter and there are no duplicates. in this problem, we are going to to define a class which wil allow us to create an object to represent a set of integers. you will write a program set. java to define the class set. each instance of the class set will be an object representing a set of integers.
Answers: 3
image
Computers and Technology, 22.06.2019 10:00, kimmmmmmy333
According to alisa miller foreign news bureaus
Answers: 3
image
Computers and Technology, 22.06.2019 10:20, alcantar28eduin
Print "usernum1 is negative." if usernum1 is less than 0. end with newline. convert usernum2 to 0 if usernum2 is greater than 10. otherwise, print "usernum2 is less than or equal to 10.". end with newline
Answers: 3
You know the right answer?
Write a C++ program that accepts an amount of money on deposit and a number of years it has been on...

Questions in other subjects:

Konu
Mathematics, 05.01.2020 05:31
Konu
English, 05.01.2020 05:31
Konu
English, 05.01.2020 05:31