Question: Determine a name for your restaurant. Determine a slogan for your restaurant. Determine 4 edible items that you are selling. Assign a name to ITEM1,

Determine a name for your restaurant. Determine a slogan for your restaurant.

Determine 4 edible items that you are selling. Assign a name to ITEM1, ITEM2, ITEM3, and ITEM4 using a string constant.

(HINT: const string ITEM1 = "Hamburger"; )

Assign a dollar value to each item using a constant. Name the constants COST_ITEM1, COST_ITEM2, COST_ITEM3, and COST_ITEM4.

Add a constant for COST_ADD_ON for the cost of an add on (bacon on your hamburger for example). You may choose to have 3 add on costs rather than one, that is your choice.

Present a user-friendly message to the user with the restaurant name and slogan.(Have fun with this. But keep it clean. :)

Present the 4 food items to the user.(This is the menu).

Ask the user to choose an item on the menu.

Accept the user input.

Use aSwitch statementto branch to the logic for each item.

Determine at least 3 options for each item. (For example, Item1 is a hamburger. Ask the user if she wants cheese? Ask if she wants onions? Ask if she wants fries with that? The user may choose to have any or all add-ons. Determine an add on cost and accumulate the total based on the add on choices. You may choose to have the same cost for all add ons for unique costs. This is where you customize your program for what makes sense for your restaurant. )

Use if/else and if statements nested inside the switch statements. You determine the correct logic structure to use. Add in extra costs if it's warranted, but remember to use variables or constants, not literals in your math equations. Output the user's order based on the user's input, along with the total cost.

Use iomanip to format the output in dollars and cents.

C ++ program

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 Programming Questions!