Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. // ======================
  2. // main function
  3. // ======================
  4. #define _CRT_SECURE_NO_WARNINGS
  5. #include <iostream>
  6. #include "pizza.h"
  7.  
  8. using namespace std;
  9.  
  10. class Pizza;
  11. void setPepperoniToppings(int numPepperoni);
  12. void setCheeseToppings(int numCheese);
  13. void setSize(int newSize);
  14. void setType(int newType);
  15. void outputDescription();
  16. double computePrice();
  17.  
  18.  
  19. int main()
  20. {
  21. // Variable declarations
  22. Pizza cheesy;
  23. Pizza pepperoni;
  24.  
  25. // (2) Fill out the remaining codes in the main function to get the results.
  26. int size = 0;
  27. int type = 0;
  28. int numPepperoni = 0;
  29. int numCheese = 0;
  30.  
  31. setSize(0);
  32. setType(0);
  33. setPepperoniToppings(0);
  34. setCheeseToppings(0);
  35. outputDescription();
  36. computePrice();
  37.  
  38. return 0;
  39.  
  40.  
  41. }
  42. void setSize(int newSize)
  43. {
  44. cout << "Enter the size of pizza : ";
  45. cin >> newSize;
  46.  
  47. }
  48.  
  49. void setType(int newType)
  50. {
  51. cout << "Enter the type of pizza : ";
  52. cin >> newType;
  53.  
  54. }
  55.  
  56. void setPepperoniToppings(int numPepperoni)
  57. {
  58. cout << "Enter the number of Pepperoni : ";
  59. cin >> numPepperoni;
  60.  
  61.  
  62. }
  63. void setCheeseToppings(int numCheese)
  64. {
  65. cout << "Enter the number of Cheese : ";
  66. cin >> numCheese;
  67.  
  68. }
  69.  
  70. void outputDescription()
  71.  
  72. double computePrice()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement