/*O.k. I am down to a few less errors. I do not understand how to correct them, I have placed the ";" everywhere and it does not make a difference, in fact I get more errors. Still confused!
Thank you. Here it is again.
This is a program that processes a loan for a car using appropriately named variables.
It will use those variables in the input, calculation, and output of this program. This
program works on a payment plan with zero interest and sales tax fixed at 6%. The car
in this program is driven 1000 miles per month.*/
#include <iostream>
#include <string>
using namespace std;
int main ()
{
int numbers; sales_price = $15000.00, tax = .06, months = 36, miles2 = 36000, miles1 = 12345, sum;
cout << "enter number 1": << endl;
cin >> one;
cout << "enter number 2": << endl;
cin >> two;
cout << "enter number 3:" << endl;
cin >> three;
cout << "enter number 4:" << endl;
cin >> four;
total salesprice (after salestax) = sales_price + tax
months = months
miles = miles1 + miles2
payments = one + two /3
string name;
//Variable declarations
string make, model, year, answer;
int year, miles, cost, month, salestax, answer;
cout << "What is the make of the car?;
getline (cin,Ford);
cout << "What is the model of the car?";
cin >> Bronco;
cout << "What is the year of the car?";
cin >> 2005;
cout << "What is the mileage of the car?";
cin >> 12345;
cout << "What is the cost of the car?";
cin >> 15000;
cout << "How many months for the loan?";
cin >> 36;
cout << "What is the sales tax?";
cin >> .06;
cout << "What are the miles per month?";
cin >> 1000;
cout << "Your 2005 Ford Bronco costs" << cost << "$": after sales_tax" << salestax << "and will cost << cost << "you "$": per month" << month << "for" << months << endl;
cout << "When it is paid off," << "you will probably have" << miles << "on it." << endl;
}
Errors:
c:\users\carole\documents\visual studio 2008\projects\compsci-assign11\compsci-assign11\compsci-assign11.cpp(57) : error C2143: syntax error : missing ';' before ':'
c:\users\carole\documents\visual studio 2008\projects\compsci-assign11\compsci-assign11\compsci-assign11.cpp(57) : error C2143: syntax error : missing ';' before ':'