Write menu driven program that make coffee shop operational

Assignment Help Programming Languages
Reference no: EM13805854

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.

Reference no: EM13805854

Questions Cloud

Treasury STRIPS-What is the yield to maturity : A Treasury STRIPS is quoted at 68.533 and has 4 years until maturity. What is the yield to maturity?
Determine the benefits of data mining to the businesses : Determine the benefits of data mining to the businesses when employing: Predictive analytics to understand the behavior of customers
If the market index increased : If the market index increased by 10.3% during a period,a stock with beta of 1.8 would be expected to ( increase or decrease) --------% during this same period ignore the risk free rate in calculating your answer
Suspected of having a hazardous chemical spill : How do we assess the situation prior to entering a plant suspected of having a hazardous chemical spill? What are some of the safeguards used by both first responders and those responsible for the recovery phase of response?
Write menu driven program that make coffee shop operational : 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 opera..
Marie sat quietly in the back of the class feeling relaxed : Marie sat quietly in the back of the class feeling relaxed, even though this was her first college class. "Here goes; this is the beginning of my future," she excitedly thought. As the teacher walked to the front of the room, Marie suddenly felt dizz..
NPV under most optimistic projection of annual savings : If a better motor fluid is used, the capital cost will increase by 350, but fluid losses will be reduced through the 30 year life of the project. The optimistic, most likely, and pessimistic projections are 35, 30 and 23. All estimates are inflation ..
Discuss the effect on the assessable income of the parent : Discuss whether or not the three payments are income from personal exertion. Would your answer differ if she wrote the story for her own satisfaction and only decided to sell it later?
Why is the business location important : Why is the business location important? Explain why Forecasting and Capacity Planning are essential in all businesses.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a program sequence that places the value in address

Write a program sequence that places the value in Address $1000 into Accumulator A and places the value in Address $1001 in Accumulator B. Then, add these values together and store the result in Location $1002.

  Create a college course to display the course data

Create a CollegeCourse that does not include the lab fee. Then display the course data. Save the files as CollegeCourse.java, LabCourse.java, and UseCourse.java.

  Create class polynomial is array of terms

Create the class Polynomial. Internal representation of the Polynomial is the array of terms. Each term contains the coefficient and the exponent.

  Explain calling functions and pass functions by value

I need to create 2 functions which passe their values when they are called in main.

  Write a program that display amount of discount on item

Write a program that asks the user to enter number of packages purchased. Program must then display amount of the discount (if any) and total amount of the purchase after the discount.

  Write prolog clauses to define the relationships

Using Prolog, establish a database of facts and rules for the following predicates.

  Write program to calculate amount a person earn

Write a program that calculates the amount a person would earn over a period of time if his or her salary is one penny the first day, two pennies the second day.

  Type of control used in programming

Loop statements are another type of control used in programming that allow programmers to interrupt the structural flow of a program.

  Write a function word_counts

Write a function word_counts that parses the string s into words and returns an array (of arrays of the form [word, count]) representing the frequency of each word. Words are case-insensitive:

  Write java program which declares the array alpha

Write the Java program which declares the array alpha of 50 elements. Initialize array so that first 25 elements are equal to square of the index variable and the last 25 elements

  Create a local variable that inherits the structure

Create a local variable that inherits the structure of the i_car table (using %ROWTYPE attribute). Place each row returned into this variable.

  Explaining data-driven multicast routing paradigm

The data-driven multicast routing paradigm works best on local networks that have low delay and excess capacity, while the demand driven paradigm works best in a wide are environment.

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