Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ======================
- // main function
- // ======================
- #define _CRT_SECURE_NO_WARNINGS
- #include <iostream>
- #include "pizza.h"
- using namespace std;
- class Pizza;
- void setPepperoniToppings(int numPepperoni);
- void setCheeseToppings(int numCheese);
- void setSize(int newSize);
- void setType(int newType);
- void outputDescription();
- double computePrice();
- int main()
- {
- // Variable declarations
- Pizza cheesy;
- Pizza pepperoni;
- // (2) Fill out the remaining codes in the main function to get the results.
- int size = 0;
- int type = 0;
- int numPepperoni = 0;
- int numCheese = 0;
- setSize(0);
- setType(0);
- setPepperoniToppings(0);
- setCheeseToppings(0);
- outputDescription();
- computePrice();
- return 0;
- }
- void setSize(int newSize)
- {
- cout << "Enter the size of pizza : ";
- cin >> newSize;
- }
- void setType(int newType)
- {
- cout << "Enter the type of pizza : ";
- cin >> newType;
- }
- void setPepperoniToppings(int numPepperoni)
- {
- cout << "Enter the number of Pepperoni : ";
- cin >> numPepperoni;
- }
- void setCheeseToppings(int numCheese)
- {
- cout << "Enter the number of Cheese : ";
- cin >> numCheese;
- }
- void outputDescription()
- double computePrice()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement