Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- cout << "Welcome to my countertop store.n" << "Before running this program you will need the depth and
- length of the block, which edges are to be finished and
- the style, as well as the grade to be used
- and the finish.n";
- cout << "Please enter the depth of the counter: ";
- cin << counterDEPTH;
- cout << "Please enter the length of the counter: ";
- cin << counterLENGTH;
- cout << "Number of long edges to be finished: ";
- cin << longEDGES;
- cout << "Number of short edges to be finished: ";
- cin << shortEDGES;
- cout << "Please choose a grade: n";
- switch (grade)
- {
- case Marble:
- double cost = 92.99;
- case Granite:
- double cost = 78.99;
- case Quartz:
- double cost = 56.99;
- case Quartite:
- double cost = 39.99;
- }
- cout << "Selected grade: " & grade;
- cout << "Would you like it polished (y/n)? ";
- switch (polished)
- {
- case Yes:
- double newcost = cost;
- double newcost = (.15 * newcost);
- case No:
- double newcost = 0.00;
- }
- cout << "Cost Informationn";
- cout << "Stone Cost: " & cost;
- cout << "Polishing Cost: " & newcost;
- cout << "Edge Cost: " & (longEdges * shortEdges * 4.99);
- cout << "Total: " & cost+newcost+(longEdges * shortEdges * 4.99);
- return 0;
- }
- cin << counterDEPTH;
- cin >> counterDEPTH;
- #include <iostream>
- using namespace std;
- int main()
- {
- cout << "Welcome to my countertop store.n" << "Before running this program you will need the depth and
- length of the block, which edges are to be finished and
- the style, as well as the grade to be used
- and the finish.n";
- double counterDEPTH, counterLENGTH, longEDGES, shortEDGES;
- cout << "Please enter the depth of the counter: ";
- cin >> counterDEPTH;
- case Marble:
- double cost = 92.99;
- break;
- case Granite:
- double cost = 78.99;
- break;
Add Comment
Please, Sign In to add comment