Global variables and special values

Assignment Help Basic Computer Science
Reference no: EM131289212

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. b. c. d. Buy coffee in any size and in any number of cups. At any time show the total number of cups of each size sold. At any time show the total amount of coffee sold. 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.

Reference no: EM131289212

Questions Cloud

Difference between economic failure and financial distress : What is the difference between economic failure and financial distress? Which situation is likely to lead to liquidation, and which is likely to result in reorganization?
Calculate the taxable income-subtract the sum : Function taxAmount: This function computes and returns the tax owed. To calculate the taxable income, subtract the sum of the standard exemption, the amount contributed to a pension plan, and the personal exemption, which is $1,500 per person. (No..
What is the purpose of a prepackaged bankruptcy : What is the purpose of a prepackaged bankruptcy? Would a prepackaged bankruptcy be more likely to be used for a liquidation or a reorganization?
Explain the planning consideration for staffing organization : Develop a model for staffing an organization that supports the firm's Human Resources Management strategy and sustains productive operations.
Global variables and special values : 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.
How to manage change and reorganisation lawfully : Understand the purpose of employment regulation and the way it is enforced in practice. how to manage recruitment and selection activities lawfully.
What trends are likely to affect profitability of industry : What major trends are likely to affect the profitability of the industry? Which are likely to improve profitability and which are likely to damage profitability of the industry as a whole?
Determine the cash flows in the swap : Using the following information about LIBOR at the end of each of the next fi ve years, determine the cash flows in the swap.
How could you capitalize on the arbitrage opportunity : If the price is not fair, how could you capitalize on the arbitrage opportunity? What is the potential profit? Assume monthly compounding for borrowing and lending.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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