Okay...okay...I know this is pathetic, but I don't have any other options right now. I have to turn in an assignment onlie tonight for a class but I don't have access to a computer with a compiler or to a computer that can run Visual C++. I had to write this in Notepad of all things. Anyways, I need somebody to compile this or give it a quick glance and tell me. Sorry in advance for being a wanker:
Code:#include <iostream> std::cout; std::endl; //Declarations int purchasePrice = 28000; int depAmt = 4000; int endOfYearValue = 0; int totalDep = 0; int year = 0; /* Main Function Pre-Conditions : None. Post-Conditions: Output of a depreciation chart displayed to the screen. */ int main (); { //Output header display cout << " END-OF-YEAR ACCUMULATED" << endl << "YEAR DEPRECIATION VALUE DEPRECIATION" << endl << "---- ------------ ----------- ------------" << endl; while (totalDep < purchasePrice) { //Calculations year++; endOfYearValue = purchasePrice - (depAmt * year); totalDep += depAmt; //Calcualtion display cout << " " << year << " " << depAmt << " " << endOfYearValue << " " << totalDep << endl; } } //End Main