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

  Prepare a program for a bank that allows the user

Prepare a program for a bank that allows the user to enter an amount of money in cents. Show the number of whole dollars the bank will give the customer in exchange.

  Aimsthe main purpose of the assignment is to let you

aimsthe main purpose of the assignment is to let you practice the following programming techniques read data from

  Why are forward declarations needed in c

Why are forward declarations needed in C/C++? In what condition can they be omitted?  (Please describe.)

  Explain function which builds the multi-dimensional vector

A separate function which outputs the multi-dimensional vector to the screen.

  Generate two files of 100 by 100 mazes

Write a C++ program that opens a file representing an encoded maze and reads it

  Write and test c program which outputs waveform

Write and test a C program which outputs waveform which switches from 10.0 kHz with a 50% duty cycle to 25.0 kHz with a 5% duty cycle every 5 seconds.

  Include the iostream, fstream, string, and cctype libraries

1. Include the iostream, fstream, string, and cctype libraries in your program.

  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.

  Reduction polynomial on the computation

What is the influence of the choice of the reduction polynomial on the computation?

  Five elements similar to having different variables

How is an array with five elements similar to having five different variables?

  Simulate a simple microcontroller called the simpletron

Building a microcontroller simulator is a fantastic way to build your understanding of how computers work. Deitel & Deitel have an interesting problem called the Simpletron and the Simple Compiler.

  Users to input two forces by their components

write a programm to ask users to input two forces by their components of (Fx1,Fy1) and (Fx2,Fy2) from the keyboard.call twice the function to display both magnitude and direction angle of two forces on the screen.add two forces and display both magni..

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