Computer Science homework help. CO SCI 116 – Project # 1 (100 points)
Your goal is to implement an application that allows employees of a pizzeria to place a customer order.
Your application should:
• get customer information including name, telephone number and address (one field for each).
• ask for the method of payment: Visa, MasterCard, or cash.
• ask for customer credit card number if he/she selects Visa or MasterCard.
• have four pizza sizes (Extra Large for $19.89, Large for 16.99, Medium for $12.50, and Small for $9.80)
and five toppings (Pepperoni $2.99, Beef $2.45, Mushrooms $2.29, Olives $1.79, Onions $1.20). All
prices are for one order. Pizza and topping prices are shown on the screen next to each item (see list of
menus below). The total price should include tax at the rate of 9.5%. Assume the customers could place
one order at a time. Customer should be able to select zero to all five toppings but only one of each max.
Selecting same topping multiple times does not add to number of that toppings. Clear option clears all
selected options.
• Gifts – select 2 toppings: Extra topping; select 3 toppings: $3.00 coupon; select 4 or more toppings:
Order of cheese sticks. Note: Maximum one gift per order; Customer may not pick a desired gift.
• calculate the total price when the user selects “Display Order Confirmation”.
When the user selects the “Display Order Confirmation” option:
• if the input is complete, your application must generate an order confirmation shown below.
• if the input is incomplete, your application must generate one message, listing all the fields requiring
completion.
The user should be able to input data in any order.
Use functions (call-by-value only). Do not use global variables. Do not use arrays.
Make sure to test your program completely before submission. Do not forget to add comments.
Submit your well-documented C++ program via Canvas.
The order confirmation should look like this:
You have placed an order for
Large pizza ($33.33)
With the following toppings:
Pepperoni ($3.99)
Olives ($2.99)
Total price: $88.88
Congratulations. You will get the following free gift with your order:
Extra topping
Sold to: John Doe
Telephone: 12345
Address: 123 Nice St.
Paid by: Visa number 998877
Page 2 of 2
Menus:
1. Input Customer Information
2. Main Selection
3. Options
4. Payment Method
5. Display Order Confirmation
6. Exit
——————————-
1. Name
2. Phone Number
3. Address
4. Main Menu
——————————-
1. A ($44.44)
2. B ($33.33)
3. C ($22.22)
4. D ($11.11)
5. Main Menu
——————————-
1. aa ($1.11)
2. bb ($3.33)
3. cc ($4.44)
4. dd ($5.55)
5. ee ($6.66)
6. Clear all options
7. Main Menu
——————————-
1. Visa
2. MasterCard
3. Cash
4. Main Menu
Note: The prices in the menu are not accurate. Use the prices in the project description.