My assignment is to write a program to calculate sales total. My program will not know how many products each customer will buy, so it will have to repeat the process until a last product has been entered (I am suppose to use -1 for product ID to end each sale). After each sale my program is suppose to ask if they want to do another sale (y-continue, N-end program). The cashDrawer will have $500.00 in it. I must display how much money is in the drawer after handling all sales transactions.Below is my code and it does not work. Please help. This is due tonight at 9pm.
//}
// Print properly formatted output for each sale
cout << "The subtotal is: " << subtotal <<endl;
cout << "The total is " << total << endl;
cout << "Would you like to do another sale? (y-Continue, n-End Program)" << endl;
cin >> anotherSale;
// Display how much is in the cash drawer at the end
cashDrawer = cashDrawer + total;
cout << "The money in the drawer after handling all transactions is " << cashDrawer << endl;
system ("pause");
return 0;
}
1
Expert's answer
2012-09-21T07:25:13-0400
Unfortunately, your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment