Ask a New Question

Question

Write a program that calculates and displays the amount of money you would have if you invested $1,000 at 5 percent interest for one year.
7 years ago

Answers

Juan Carlos
double money = 1000;
double interest = 0.05;
for (int i = 0; i < 12; i++) {

}
7 years ago
Juan Carlos
double money = 1000;
double interest = 0.05;
for (int i = 0; i < 12; i++) {
money *= (1 + interest);
}
return money
7 years ago

Related Questions

write a program that calculates a customer's monthly bill. it should input customer name, which pack... I need to write a program to solve for the following: Suppose that the file USPRES.txt contains the... Write a program that calculates and displays the total travel expenses of a businessperson on a tri... write a program C++ program and Use a recursive function that finds the n-th term using the followin... write a program that calculates the gross pay and net pay of a weeklly paid employee how do you write a program that will ask the user to enter their initials (first & last name) and th... how to write a program that will ask the user to enter 2 numbers and then compare if the numbers ent... Write a loop that calculates the (float) sum of the following series of numbers: 1/10 + 2/9 + 3/8 +... A computer program calculates the amount of kinetic energy (K E) and elastic potential energy (P E)... Write a program that calculates and displays the total cost of a meal after applying a 15% tip. -...
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use