Write a menu-driven c++ program for food purchases

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

Write a menu-driven C++ program for food purchases at the baseball stadium's restaurant. The main program will loop allowing the user to select food items from the menu adding each item to the bill, terminating when the user selects the "End order" item. The program will then calculate and display the total bill with tax (.065) and tip (.20); tip is calculated on the pretax bill. The program also needs to collect payment and calculate change due.

list

hamburger=1,

hotdog=2,

peanuts=3,

popcorn=4,

soda=5,

chips=6,

water=7,

end_order=8;

price

hamburger_price=6.00,

hotdog_price=4.50,

peanuts_price=3.75,

popcorn_price=5.50,

soda_price=2.00,

chips_price=1.00,

water_price=2.00;

Reference no: EM13784267

Questions Cloud

Syllogistic arguments that are missing the conclusions : To be a valid syllogism, the conclusion must be proven by the reasons. Carefully study the following syllogisms and decide if they are valid or invalid:
Assignment on quality assurance in healthcare systems : quality assurance in healthcare systems.
Key financial terms related issues : Analyze at least three problems that may arise over a long time frame by using the internal rate of return method.
Discussion-migration and immigration : Globalization has caused extensive shifts in the mobility of people between countries. Economics, political shifts, and increased opportunities for travel have made migration and immigration pervasive. This assignment will explore immigration patt..
Write a menu-driven c++ program for food purchases : Write a menu-driven C++ program for food purchases at the baseball stadium's restaurant. The main program will loop allowing the user to select food items from the menu adding each item to the bill, terminating when the user selects the "End order..
Describe e-learning as a training method : Describe e-learning as a training method
Write a program to go through your address book : Everyone has at least one friend who always remembers everyone's birthday. Write a program to go through your address book and print the names and phone numbers of all people who have birthdays on that day, so you can give them a call.
Assignment on organizational theory and design : Organizational Theory and design.
Alternative strategies for the developing venture : Analyze how you can structure your venture to avoid potential exit strategy problems and suggest alternative strategies for the developing venture.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a program to create 100 real random numbers

Write a program to create 100 real random numbers and store it into a 1-D array. Find the value 1413 from the stored data and print out the value 1413 and the index of the array to the screen

  Write a computer program to prepare a linear support vector

write a computer program to prepare a linear support vector machine svm. prepare a report and deliver the report

  Write c program to add two integers and prints out average

Write a C program that prompts for a variable number of integers, adds them up, and prints out the average. The user will enter either an integer to be averaged.

  Design a simple game of blackjack

Prepare a simple game of blackjack using object oriented programming.

  Write the copy-array procedure by a function

Write the C++ statement that dynamically creates an array of 10 components of type int and num contains the base address of the array

  Prepare an accounting for a dorm''s kitchen

The "purpose" of the program is to prepare an accounting (database) for e.g. a dorm's kitchen, to keep track of the consumption of beer for each room.

  A hierarchical jpeg encode decoder for greyscale images

This project is to develop a program that implements a hierarchical JPEG encoder/decoder for greyscale images.

  Design a program read the following information from the

design a program read the following information from the keyboard in which base class consist of employee name code and

  Question 1 write a program to print the following patterna

question 1 write a program to print the following patterna 1 b 11 2 2 21 2 3 3 3 31 2 3 4 4 4 4 41 2 3 4 5 5 5 5 5

  Ask the user to enter the desired character

Write a very simple c program which will Ask the user to enter the desired character- Repeat the asking part until the user types a desired letter. For each even number of attempts

  Write a c++ statement that multiplies the value

Write a program that prompts the user to input a decimal number and outputs the number rounded to the nearest integer.

  Write an iterative version and a recursive version

Write a main program that illustrates the work of your functions. E.g., if a[ ]={1,2,3,3,4,5} then 3 occurs 2 times and 7 occurs 0 times.

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