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 a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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