0

amateur programmer here looking for some pretty basic help from the community. I am completing a program which is supposed to calculate the total monthly/annual cost for a vehicle; mind you, it's meant to be simple, but I probably shoot myself without noticing...

#include <iostream>

using std::cout;
using std::cin;
using std::endl;
using std::ios;
using std::fixed;

#include <cmath>


using namespace std;

	int main()

{

//variable declaration
double loanmonthlyfee;
double totalmonthlybill
double insurancecost;
double totalannualcost
double additionalcosts;
double gasolineexpenditure;
double tiremaintenance; 



//input
cout <<"Enter Loan Monthly fee.";
cin >> loanmonthlyfee;

cout<<"enter insurance cost.";
cin >>insurancecost; 

cout <<"enter gasoline expenditure.";
cin >> gasolineexpenditure;

cout <<"enter tire maintenance cost";
cin >> tiremaintenance;

cout <<"enter any additional costs";
cin >> additionalcosts;

double totalmonthlybill = loanmonthlybill + insurancecost + totalannualcost + additionalcosts + gasolineexpenditure + tiremaintenance;
double totalannualcost = totalmonthlybill * 12;

cout <<"your total monthyl bill is" << totalmonthlybill;
cout <<"your total annual bill is" << totalannualcost;


system("PAUSE");
return 0;



}
2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by gerard4143
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.