Question: 1. Open Visual Studio, create a new project, select Visual C++, CLR. CLR Console Application, name it CarPayment, and select urse to save this project

 1. Open Visual Studio, create a new project, select Visual C++,

1. Open Visual Studio, create a new project, select Visual C++, CLR. CLR Console Application, name it CarPayment, and select urse to save this project to your folder on your flash drive called Intro To Programming. 2. Now, write a program that will calculate the amount of a car loan payment. Here is the algorithm: o define a constant value INTEREST RATE 0.05 o add a prototype for a function called CalculateCarPayment: double calculateCarPayment(double, int) o create 2 double variables called loanAmount and payment o create 1 integer variable called loanTerm o Print a message to the screen "Welcome to our car loan payment program.. o Print a message to the screen "The interest rate of our car loans is 5 percent." oPrint a message to the screen "Enter the amount of money you need to borrow: " o Read in this amount and store it in the variable loanAmount ua- Print a message to the screen "Enter the term of the loan in months- enter 36 or 48 or 60:" Read in this and store it in loanTerm o Now call the function calculateCarPayment and store the value that will be returned by this function in the variable payment like this: payment calcelateCarPayment(loanAmount, loanTerm); o Print a message to the screen ("Your monthly loan payment will be: %2f", payment); 3. After your main program, write the code for the function calculateCarPayment. It will calculate the amount of the car payment and return this value back to the main program. The code to calculate the car payment can be done in one line like this: return ( loanAmount+ (loanAmount INTEREST RATE)/ loanTerm

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!