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, 23.06.2019 09:00
Before you record your own voice, you should a. record other people's voices b. warm up and practice difficult names c. listen to your favorite songs d. read a transcript of a good radio news segment
Answers: 1
question
Computers and Technology, 23.06.2019 11:30
Auser is given read permission to a file stored on an ntfs-formatted volume. the file is then copied to a folder on the same ntfs-formatted volume where the user has been given full control permission for that folder. when the user logs on to the computer holding the file and accesses its new location via a drive letter, what is the user's effective permission to the file? a. read b. full control c. no access d. modify e. none of the above
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
From excel to powerpoint, you can copy and paste a. cell ranges and charts, one at a time. b. cell ranges and charts, simultaneously. c. charts only. d. cell ranges only.
Answers: 3
question
Computers and Technology, 23.06.2019 14:30
The option enables you to modify a slide element in most presentation applications.
Answers: 2
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, 18.11.2020 17:50
question
Mathematics, 18.11.2020 17:50
question
Mathematics, 18.11.2020 17:50
question
English, 18.11.2020 17:50