Question: Taking a c++ programing class and a bit much from the teaching's in the class. Write a c++ program, codeblocks is the format we are

 Taking a c++ programing class and a bit much from theteaching's in the class. Write a c++ program, codeblocks is the format

Taking a c++ programing class and a bit much from the teaching's in the class.

Write a c++ program, codeblocks is the format we are using. Close counts at this moment.

Assignment 4-A: Who wants to be a millionaire Overview The of assignment is to make sure that you know how to write a program that purpose this contains functions that meet specific requirements. WARNINGYour work will receive no points if you solve the problem without implementing the three required C++ functions listed below (two versions of a C++ newBalance function and one version of a C++ yearsNeeded function). Moreover, your functions must work correctly for any valid arguments (not just for the particular numbers that your main program uses) PROGRAM SPECIFICATION For the assignment, write a program that an investor can use to compute future bank balances. The program asks the user for two pieces of information: The amount of an initial deposit (entered as a double number in dollars, such as 42.31 for 42 dollars and 31 cents), and an interest rate (entered as a double number, such at 0.05 for 5% interest) The program prints the results of three computations, each of which assumes that interest is paid once per year on the amount in the account at the year's start: (1) The balance in the account after one year of interest; (2) The balance in the account after ten years of compounding interest; (3) The number of years required for the balance to reach at least one million dollars. The account balances should be printed with a dollar sign in front and rounded to two decimal places (such as $42.31). In order to get numbers to print with two decimals, include both and and place these lines in your main function just after you declare any local variables that the main function uses): coutprecision(DIGITS); cout, setf(ios::fixed, ios: floatfield); Your program must include functions with these exact prototypes: double newBalance(double initialBalance, double interestRate): I This first version of the new balance function computes the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!