Guest User

Untitled

a guest
Jan 22nd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. cout << "Welcome to my countertop store.n" << "Before running this program you will need the depth and
  6. length of the block, which edges are to be finished and
  7. the style, as well as the grade to be used
  8. and the finish.n";
  9.  
  10. cout << "Please enter the depth of the counter: ";
  11. cin << counterDEPTH;
  12. cout << "Please enter the length of the counter: ";
  13. cin << counterLENGTH;
  14. cout << "Number of long edges to be finished: ";
  15. cin << longEDGES;
  16. cout << "Number of short edges to be finished: ";
  17. cin << shortEDGES;
  18. cout << "Please choose a grade: n";
  19. switch (grade)
  20. {
  21. case Marble:
  22. double cost = 92.99;
  23. case Granite:
  24. double cost = 78.99;
  25. case Quartz:
  26. double cost = 56.99;
  27. case Quartite:
  28. double cost = 39.99;
  29. }
  30. cout << "Selected grade: " & grade;
  31. cout << "Would you like it polished (y/n)? ";
  32. switch (polished)
  33. {
  34. case Yes:
  35. double newcost = cost;
  36. double newcost = (.15 * newcost);
  37. case No:
  38. double newcost = 0.00;
  39. }
  40. cout << "Cost Informationn";
  41. cout << "Stone Cost: " & cost;
  42. cout << "Polishing Cost: " & newcost;
  43. cout << "Edge Cost: " & (longEdges * shortEdges * 4.99);
  44. cout << "Total: " & cost+newcost+(longEdges * shortEdges * 4.99);
  45. return 0;
  46. }
  47.  
  48. cin << counterDEPTH;
  49.  
  50. cin >> counterDEPTH;
  51.  
  52. #include <iostream>
  53. using namespace std;
  54. int main()
  55. {
  56. cout << "Welcome to my countertop store.n" << "Before running this program you will need the depth and
  57. length of the block, which edges are to be finished and
  58. the style, as well as the grade to be used
  59. and the finish.n";
  60.  
  61. double counterDEPTH, counterLENGTH, longEDGES, shortEDGES;
  62.  
  63. cout << "Please enter the depth of the counter: ";
  64. cin >> counterDEPTH;
  65.  
  66. case Marble:
  67. double cost = 92.99;
  68. break;
  69. case Granite:
  70. double cost = 78.99;
  71. break;
Add Comment
Please, Sign In to add comment