Question: C++ programming: Your goal is to implement an application that allows employees of a pizzeria to place a customer order. Your application should: 1. get

C++ programming:

Your goal is to implement an application that allows employees of a pizzeria to place a customer order. Your application should:

1. get customer information including name, telephone number, and address (one field for each).

2. ask for the method of payment: Visa, MasterCard, or cash.

3. ask for customer credit card number if he/she selects Visa or MasterCard.

4. 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)

5. 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.

6. calculate the total price when the user selects "Display Order Confirmation".

When the user selects the Display Order Confirmation option:

1. if the input is complete, your application must generate an order confirmation shown below.

2. 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

Sold to: John Doe Telephone: 12345 Address: 123 Nice St. Paid by: Visa number 998877

Page 1 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 on the menu are not accurate. Use the prices in the project description.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!