Question

Jason opened a coffee shop at the beach and sells coffee in three sizes: small (9oz),...

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

a. Buy coffee in any size and in any number of cups.

b. At any time show the total number of cups of each size sold.

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

d. At any time show the total money made.

Your program should consist of at least the following functions: a function to show the user how to use the program, a function to sell coffee, a function to show the number of cups of each size sold, a function to show the total amount of coffee sold, and a function to show the total money made. Your program should not use any global variables and special values such as coffee cup sizes and cost of a coffee cup must be declared as named constants

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
Jason opened a coffee shop at the beach and sells coffee in three sizes: small (9oz),...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • Write for python: Jason opened a coffee shop at the beach and sells coffee in three...

    Write for python: Jason opened a coffee shop at the beach and sells coffee in three sizes: small (9oz), medium (12oz), and large (15oz). The cost of one small cup is $1.75, on e medium cup is $1.90, and one large cup is $2.00. Program should allow to do the following: 1.Buy coffee in any size and in any number of cups 2.At any time show the total number of cups of each size sold. 3.At any time show the...

  • 3. The first coffee shop in LH (a small town of ten thousand residents in the...

    3. The first coffee shop in LH (a small town of ten thousand residents in the Midwest) is opening in a month. The store is selling freshly brewed coffee in three sizes: small (5 fl. oz.), medium (8 fl. oz.) and large (11 fl. oz.), and the cost of the coffee is 10 cents per fl. oz. The marketing research that the storeowner, Luc, conducted show that there are four thousand people who drink coffee in this town, and they...

  • At Starbucks, there are three sizes of coffee drinks, Small (200 ml), Regular (400 mL) and...

    At Starbucks, there are three sizes of coffee drinks, Small (200 ml), Regular (400 mL) and Large (800 mL), and they cost $2.25, 53.75, and $5.75, Respectively. On one evening Starbucks sold 39 coffees, the total volume of the coffee sold was 19,800 mL, and the amount of money made in coffee sales was $129. Using Cramer's rule how many of each size of coffee did customers buy that evening? (Submit your solution BY your HAND-writing)

  • Using C#, write a program. You are a coffee and tea shop. You will allow customers...

    Using C#, write a program. You are a coffee and tea shop. You will allow customers to enter their orders. You sell coffee and tea in three sizes, small coffee for $1.00, medium for $1.20, and large for $1.40. Tea is $1.20, $1.40, and $1.60. You will let ask the user what they want, size, ask if they want to order anything else, continue taking their order. At the end show them how much they owe. If they order more...

  • Jorge owns a small coffee shop. The market in which Jorge’s business operates is perfectly competitive,...

    Jorge owns a small coffee shop. The market in which Jorge’s business operates is perfectly competitive, and the market price of a cup of coffee is $2. Jorge’s cost function is TC=0.01q^2+q+5 and his marginal cost is MC=0.02q+1 How many cups of coffee should Jorge produce to maximize his profit? What will be Jorge’s maximum profit?

  • Pyhton Program : Write a coffee vending machine class. Include fields giving the number of cups...

    Pyhton Program : Write a coffee vending machine class. Include fields giving the number of cups of coffee available, the cost of one cup of coffee, and the total amount of money inserted by the user. This machine requires exact change. Include one constructor which stocks the machine with a quantity and price of coffee specified as parameters. Include the following methods; menu() // display the quantity and price of coffee insert(int quarters, int dimes, int nickels) // insert the...

  • Mikaela Inc. sells three sizes of umbrellas: small, medium, and large. The company has annual fixed...

    Mikaela Inc. sells three sizes of umbrellas: small, medium, and large. The company has annual fixed costs of P19,520,000. For the past several years, 20% of Hugo's sales have been the small and large umbrellas with the remaining 60% being the medium size. Mikaela does not expect this to change in the upcoming year. The following information is also available for each of the umbrellas: Small Medium Large Sales price per unit P400 P700 P1.750 Variable costs per unit 150...

  • need 5-9 please Jason believes that the sales of his coffee shop depend upon the weather....

    need 5-9 please Jason believes that the sales of his coffee shop depend upon the weather. He has taken a sample of 5 days Below you are given the results of the sample Temp Cups of coffee sold 700 50 60 500 70 400 80 200 100 90 -You are going to conduct a simple linear regression analysis using this data I. What is the dependent variable? Options-weather,temperature,coffee shops days,cups of coffiee 2. First calculate the value of bl. If...

  • write a C++ program that sells candy and drinks using the enumeration type. You must use...

    write a C++ program that sells candy and drinks using the enumeration type. You must use the following within your program: enum sizes {SMALL, MEDIUM, LARGE, JUMBO}; sizes Candysize, drinkSize; You should create a menu that asks the user to choose what size of drink they want and to choose what size of popcorn they want. Then I have to print out the total cost of the drink and popcorn. The Prices: Candy Soda Small 1.25 1.50 Medium 2.25 2.50...

  • JIz Instructions Question 6 10 pts Suppose Sue's monthly demand equation for coffee is Q =...

    JIz Instructions Question 6 10 pts Suppose Sue's monthly demand equation for coffee is Q = 30 - 3P, and the price is $4/cup. Show all calculation steps for your answer to the following questions: a) How many cups of coffee will Sue buy in one month? What is the marginal value for the last cup she consumes? b) How much is Sue's total value from consumption? How much is her consumer surplus? c) Suppose the coffee shop has a...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT