Approached to create a computer program

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

Your spouse's cousin's nephew's dog's trainer's best friend owns a restaurant.  That person is very bad at math and recently discovered that most customers have been significantly undercharged for meals. 

You have been approached to create a computer program that will accurately calculate bills for each customer.

Kids, under 12, eat free. 

Teens and seniors get a 25% discount.  Teens are anyone from 13 to 18 years old.  Seniors are anyone 65 or older.

Also,Food and beverage is taxed at 5%.

No tax for anything a senior or teen orders and eats.

Every person who eats at this restaurant orders exactly three items.  Never greater, never fewer.The menu is limited:

 

Menu Item

Price

Soup

2.50

Wings

.15 each

Burger

4.95

Chicken sandwich

5.95

Fries

1.99

Pie

2.95

Ice cream

2.99

Soft drink

1.50

Coffee

1.00

Write a program that will accurately determine a bill.

Programs must be tested.  In order to test this program, use the following scenario:

 

A family stops at the restaurant for lunch.  The family is composed of a middle aged (mid 40s) mother and father named Bill and Nancy.  They have a 2-year old child named Jesse.  They are traveling with Nancy's 70 year old grandmother, Sarah. 

Everybody decided to order a burger.  Nancy and Jesse order a soft drink.  Nancy and Sarah order soup.  Bill orders 5 wings.  Bill and Sarah order coffee.  Jesse orders ice cream.

Your program should run until the user inputs that there are no more orders.  The program should print the total per person and then the grand total.  Use methods to display the menu, read the item ordered and read the person's age. 

To earn full credit for this assignment, you MUST create a table for your test cases.

Reference no: EM13897426

Questions Cloud

Write a summary for the ppt cash flow analysis : Write a 1-2 page summary for each set of power point slides. Cash Flow Analysis Chapter 7 and Prospective Analysis Chapter 9. Text Book: Financial Statement Analysis
Determine is the oxidation state of the metal : Determine is the oxidation state of the metal in each of the following complexes. Draw ALL linkage isomers and stereoisomers for each complex CLEARLY showing enantiomers.
Template class definition : You have the following template class definition.  template  class mypair {
Invites user to enter a random string : Invites user to enter a random string of lower case letters 2)get the string on the same line as the invitation 3)checks correctness of input(if its only lowercase letters 4)computes number of letters that is not being used 5)program out puts the ans..
Approached to create a computer program : Your spouse's cousin's nephew's dog's trainer's best friend owns a restaurant.  That person is very bad at math and recently discovered that most customers have been significantly undercharged for meals. You have been approached to create a computer ..
Write an elevator speech citing and defending your view : Decide whether you agree with black suit, green sweater, or tracksuit. Write an elevator speech (10 sentences) citing and defending your view."
Use at least two programmer defined functions : C++ Using an input file similar to the one below, write a program to determine the highest concentration recorded and the number of days the photochemical oxidant concentration exceeded the standard; display number of days and percentage (based on th..
Design an application for the homestead furniture : Design an application for the Homestead Furniture Store that gets sales transaction data, including an account number, customer name, and purchase price. Output the account number and name, then output the customer's payment for each month for the ne..
Identify and classify the type of pericyclic reaction shown : Classify the sigmatropic rearrangement as an [n,n]-sigmatropic rearrangement, where n is an integer. Show how the classification is arrived at as part of your answer.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  A run is a sequence of adjacent repeated val

A   run   is   a   sequence   of   adjacent   repeated   values.   Using   an   array,   write   a   program   that   generates   a   sequence   of

  Called cbankaccount

Create a base class, called CBankAccount, and two additional classes (each derived from CBankAccount), called CSavingsAccount and CCheckingAccount.

  Provide public member functions that perform the given task

Provide public member functions that perform the given tasks setComplex function to set complex number to set the real part and imaginary part of the complex number

  Function odd_fill() that fills all integers between two poin

write a function odd_fill() that fills all integers between two pointers, first and last, with a sequence of odd integers: 1,3,5,7

  Program to hack a simple account

it should entail how to get the password of such an account.

  Write a program that converts between app and ppm values

Write a simple program that converts between APP and PPM values

  Using array subscript notation

Using array subscript notation, base/offset notation with the array name as the pointer, array notation with  vPtr , and pointer/offset notation with  vPtr , add 3 to the value in the 3 rd element and display that number. (Do not modify the value in ..

  Translate than c source code

Why does Ada take so much more time to translate than C source code? What phase of the Ada translation takes the longest?

  Declare an array of integers

Declare an array of 10 integers and initialize its elements to the following values: -10; -8; -6; -4; -2; 0; 2; 4; 6;8;10

  Write a program that allows two players to play a game

Write a program that allows two players (player X and player O) to play a game of tic-tac-toe. Use a two- dimensional char array with three rows and three columns as the game board. Each element of the array should be initialized with an asterisk ..

  Generate a set of 75 random integers in the range -26 to + 4

Write a program that will generate a set of 75 random integers in the range -26 to + 42. The program

  If ptr is a pointer to a character

If ptr is a pointer to a character and has been initialized to point to the first element of arr, write a statement using ptr that is equivalent to the statement array[4] = 12.

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