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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 16:30
Corey set up his presentation for delivery to his team.the information he had to convey was critical to their job performance.he knew he would need a lot of time to explain each point
Answers: 3
question
Computers and Technology, 23.06.2019 22:30
What would be the address of the cell, which is at the intersection of the second row and the third column in a worksheet?
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
Apart from confidential information, what other information does nda to outline? ndas not only outline confidential information, but they also enable you to outline .
Answers: 1
question
Computers and Technology, 24.06.2019 14:30
In a home that has 120 v service, there is an electric appliance that has a resistance of 12 ohms. how much power will this appliance consume? a. 10 w b. 120 w c 1200 w d. 1440 w
Answers: 1
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
question
Mathematics, 14.07.2021 04:00
question
Mathematics, 14.07.2021 04:00
question
Mathematics, 14.07.2021 04:00
question
Mathematics, 14.07.2021 04:00
question
Mathematics, 14.07.2021 04:00
Questions on the website: 13722362