http://pastebin.com/jkxesxHE The receipt part needs to add up the total yards, i
ID: 3654890 • Letter: H
Question
http://pastebin.com/jkxesxHE
The receipt part needs to add up the total yards, installation cost, carpet cost, and padding cost for every room entered, and give a grand total (install cost+carpet cost+ padding cost).
To be clear, if I enter 10 rooms the receipt will show the total yards from the 10 rooms, the total installation cost from each room, the total padding cost for each room, the total carpet cost for each room, then a grand total of carpet+install+padding cost.
Lifesaver, thanks.
Explanation / Answer
#include #include #include #include #include using namespace std; int main() { int rooms,x,area,padding; double total=0, length, width, price, totalRoom, installCost, carpCost, padCost; double totalYard=0.0,totalInstallCost=0.0,totalCarpCost=0.0,totalPadCost=0.0; cout > rooms; for (x=0;xRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.