A list of toppings should be shown on the screen as a menu

Assignment Help C/C++ Programming
Reference no: EM13166969

Write a menu-driven C++ program that allows a user to select from the following items: Pizza, Cheeseburger, and Hot Dog. Pizza should be represented by the integer value 1. Cheeseburger should be represented by the integer value 2. Hot Dog should be represented by the integer value 3. Validate the input that the user enters; what is allowed to be entered is 1, 2, or 3. If the user enters any other number, ask him or her to enter a correct number.
Based on the choice from the user, a list of toppings should be shown on the screen as a menu. Output to the screen three toppings that could be included on the user's item. For example, if the user selects pizza, three possible choices that could be displayed are Extra Cheese, Beef, and Chicken. Ask the user to enter his choice as an integer value. Extra Cheese should be represented by the value 1. Beef should be represented by the value 2. Chicken should be represented by the value 3. Validate the input that the user enters; what is allowed to be entered is 1, 2, or 3. If the user enters any other number, ask him or her to enter a correct number.
After the user is done with his or her order, print out a message that shows the user his or her complete order. For example:
You ordered Pizza with toppings of Extra Cheese.
DO NOT PUT ALL OF YOUR INSTRUCTIONS (C++ CODE) IN THE MAIN
FUNCTION!
THE MAIN FUNCTION SHOULD CONTAIN CALLS TO OTHER USER-DEFINED
FUNCTIONS.
USE AS MANY USER-DEFINED FUNCTIONS AS POSSIBLE.

Reference no: EM13166969

Questions Cloud

Guessing game : In C++ develop a "guessing game" where the computer and the user alternatively guess the value of a randomly selected secret number between 1 and 99 (or any other maximum value). Initially, the computer selects the random number, and the user make..
Discuss how olap and data warehousing technologies : Discuss how OLAP and data warehousing technologies work together in solving user problems. What are the advantages and disadvantages of the different OLAP technologies (MOLAP, ROLAP, HOLAP)?
Optimal value of the objective function : Find the optimal value of the objective function for the following problem by only inspecting its dual. (Do not solve the dual by the simplex method)
Write a method called add uneven arrays : Write a method called addUnevenArrays that takes two arrays, a and b, and returns a new array, c, with alength that is the maximum of the lengths of a and b. Each c[i] is the sum of the corresponding elementsof a and b if both elements exist.
A list of toppings should be shown on the screen as a menu : Write a menu-driven C++ program that allows a user to select from the following items: Pizza, Cheeseburger, and Hot Dog. Pizza should be represented by the integer value 1. Cheeseburger should be represented by the integer value 2.
Write specifications using uml notation for a function : Write specifications using UML notation for a function that computes the sum of the first five positive integers in an array of  n  arbitrary integers.
The number of lowercase letters in the file : The number of uppercase letters in the file The number of lowercase letters in the file
Why do we pursue technologies : Why do we pursue technologies, such as those associated with virtual reality? Going back to one of our definitions of technology, what problem are we trying to solve? What are the risks associated with these technologies?
The access attributes, list and describe : Without considering the access attributes, list and describe which base class members may not be inherited by a derived class and provide a rationale for why this is?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  State diagram to recognize one form

Design a state diagram to recognize one form of the comments of the C-based programming languages, those that begin with /* and end with */. and also Write and test the code to implement the state diagram.

  Write a menu-driven program that maintains an address book

Write a menu-driven program that maintains an address book using a linked list. The address book must supports the following operations

  The grid is populated randomly

Initially, the grid is populated randomly with occupied and empty cells. Once the initial grid has been created, the program loops. Each iteration of the loop represents a tick or time step in the environment.

  Linked list in c++

If the following C++ code is valid, show the output. If it is invalid, explain why.

  Throws an exception from a deeply nested

Write a program that throws an exception from a deeply nested function and still has the catch handler following the try block enclosing the initial call in main catch the exception

  Design a program that asks for the number of fat grams

Starting out with Programming logic and design 3rd Author Tony Gaddis - Pg 279, PE 3 Fat Grams Calculator

  Write a complete c++ program

The main program will read in a parameter value n (read this in main). Then it will call a function read2arrays (details below) to read lists of grades into two arrays, which the main program will call test1 and test2 (or some other names of your ..

  Implement a graphics system that has classes

Implement a graphics System that has classes for various figures: rectangles, squares, triangles and circles. A rectangle has data members height, width, color , and center point. A square has center point and an edge and color

  Program that stores a series of numbers in a binary tree

Write a program that stores a series of numbers in a binary tree

  Principle ofsuperposition to determine that system is linear

Apply the principle of superposition to determine whether the following systems are linear. Sketch what the plot of the function looks like.

  Write a program to find the middle element in a linked list

1. Write a program to check if there is a loop in a linked list. Create a loop in a linked list and use your method 'isLoop' to identify that the loop exists. The method isLoop should return a Boolean type.2.

  Create a program that displays the number of days in a month

Create a program that displays the number of days in a month. Use a 12-element one-dimensional array to store the number of days in each month (use 28 for the number of days in February).

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd