Write a menu driven program that will make the coffee shop

Assignment Help Programming Languages
Reference no: EM131317780

Assignment

Jason has opened a coffee shop at the beach and sells coffee in three sizes: small (9oz) medium (12oz) and large (15oz). Small cost is $1.75 medium costs $1.90 and large costs $2.00. Write a menu driven program that will make the coffee shop operational. The program should allow the user to do the following:

1. buy coffee in any size and any number of cups.

2. at any time show the total number of cups of coffee of each size sold.

3. At any time show the total amount of coffee sold.

4. at any time show the total amount of money made.

The program should at the least:

1. a function to show the user how to use the program.

2. a function to sell coffee.

3. a function to show the number of cups of each size sold.

4. a function to show the total amount of coffee sold.

5. a function to show the total amount of money made.

No global variables. Special values such as coffee cup sizes and cost of a coffee cup must be declared as named constants.

Reference no: EM131317780

Questions Cloud

Why is it important to note method of costing exploration : Some industries described are controlled by federal regulatory agencies. How does this affect their accounting systems?
Calculate the value of a 6-month european : Calculate the value of a 6-month European put futures option when the futures price is $19, the strike price is $20, the risk-free rate is 12% per annum and the volatility of the futures price is 20% per annum.
When will linewidth equal atomic dimensions : CMOS linewidths have been scaled down steadily by 30% every three years. In the year 2000, linewidths were in the range of 0.18µm. When will linewidth equal atomic dimensions?
Firm operating cycle and its cash conversion cycle : Describe what the differences are between the firm's operating cycle and its cash conversion cycle? Which one do you think would be more important than the other to you as a business/company owner and why did you form that opinion?
Write a menu driven program that will make the coffee shop : Small cost is $1.75 medium costs $1.90 and large costs $2.00. Write a menu driven program that will make the coffee shop operational.
For regulated utilities describe income statement account : For regulated utilities, describe the income statement accounts, allowance for equity funds used during construction, and allowance for borrowed funds used during construction.
Compare and contrast the various provisions across leagues : Compare and contrast the various provisions across leagues, such as those relating to drug testing, salary arbitration, grievance arbitration, salary caps, drafts, pensions, and other benefits.Discover and discuss whether there are provisions that..
What is the yield to maturity : Bluff Enterprises has $1,000 face value bonds outstanding. These bonds pay interest semiannually, mature in 6 years, and have a 7percent coupon. The current price is quoted at 101.36. What is the yield to maturity?
What is aluminium thickness : Resistance of 200µm long copper lines was measured to be 40 ohm. From copper deposition process we know that thickness is 300 nm. What is the linewidth?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write shell script to read from keyboard-display on monitor

Write shell script called poject.21 to read from keyboard and display on monitor first name, last name and age if the age is less than 50.

  Write down a program which compute the amounts of money

earl and larry each begin a full-time jobs in january 2013 and plan to retire in january 2061 after working for 48

  Write a program to input a purchase amount

Write a program to input a purchase amount and calculate the sales tax and total do. The SalesTax depends on the county identifying code

  Prepare a vba macro for the bisection method

Prepare a VBA macro for the bisection method and also determine the real roots of the subsequent equation using the written equation: f(x)=-.6x^2+2.4x+5.5

  Create a small program that uses conditions and loops

Control flow enables you to easily add conditions and loops to your programs. In this task you will create a small program that uses conditions and loops to output custom messages to users.

  Op-codes-add microcode to overlapping address ranges

Bmov a,b,n. This Block Move instruction moves n bytes of data from location a in memory to location b. Deal correctly with case of overlapping address ranges.

  You need to find out the average score and how many scores

suppose that you have an array of baseball scores type integer called scores. the values in the array are ordered from

  Store a list of items on a grocery list

write a program that uses a string array to store a list of items on a grocery list. The program should allow the user (via a menu) to add an item to the list, clear the list, and display the list.

  Write program which permits user to enter first name

Write the program which permits the user to enter first names of candidates in university election and number of votes received by each candidate.

  Identify and discuss the four different dom nodes

Identify and discuss the four different DOM nodes. The properties to be stored should include Make, Model, Year, and Color. Write code that will display these properties using a single alert statement.

  How to use bit vector to represent dynamic set of distinct

Explain how to use a bit vector to represent a Dynamic Set of Distinct Elements with no Satellite Data. Dictionary Operations must Run in O (1) Time.

  Create program to sum all integers between one and n

Using C++ create program to sum all integers between 1 and n where n is input by keyboard. Print "The sum of all integers from 1 to n is SUM

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