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 10:10
3. bob is arguing that if you use output feedback (ofb) mode twice in a row to encrypt a long message, m, using the same key each time, it will be more secure. explain why bob is wrong, no matter what encryption algorithm he is using for block encryption (15 points).
Answers: 3
question
Computers and Technology, 22.06.2019 19:30
When creating a presentation in libre office impress, where does the editing of slides take place?
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
20 points archie wants to use a reflector as he photographs a newlywed couple. what would he consider in his choice? a. shadow and sunny b. homemade and professional c. lamps and boards d. incident and reflected e. neutral density and enhancement
Answers: 3
question
Computers and Technology, 23.06.2019 19:00
Acompany is hiring professionals for web designing. the firm is small with few resources. they want employees who possess problem-solving skills and can independently carry out responsibilities. which kind of employee should they select?
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, 21.02.2020 09:43
question
Mathematics, 21.02.2020 09:45
question
History, 21.02.2020 09:46
Questions on the website: 13722359