Write menu-driven program that make coffee shop operational

Assignment Help Programming Languages
Reference no: EM131267246

Write a program using the following information:

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.

Please submit each lab assignment with only two files for grading.

a .docx file of its program's successful execution output in Word format
a .cpp file of your C++ program design (source code)

Each .cpp source code should include a header documentation and some block documentation. Please see my sample .cpp file under Additional Resources at Student Center. Do not omit embedded block documentation. This is a part of grading component.
An example for header documentation: (stated in Class Information document)

// Author: Gerry Adams

// Assignment: Lab 3 - P2.3

// Program Title: Arithmetic Operations

// Program Description: The program prompts the user for two integers, and the calculatetheir sum, difference, product, average, distance, maximum, and minimum.

// Compiler Used: Microsoft Visual C++

// Completion Date: July 1, 2016

1. Do not include unnecessary header files such as <math>. Arithmetic operations such as +, -, *, / do not require <math> header file.

2. To pause an execution for viewing, you may use system ("PAUSE");

3. If you use the statement: using namespace std; at the beginning of your program, you need not to include std:: with cin and cout.

4. Be aware of using proper code indentation. The purpose of good indentation is for easy reading and debugging, thus speeding up maintenance work.

Reference no: EM131267246

Questions Cloud

Which of the following is a class of fingerprint pattern : The automated fingerprint identification systems (AFIS) can search a set of 10 fingerprints against a file of 500,000 in approximately and Which of the following is a class of fingerprint pattern
Program that reads a fahrenheit degree : Write a program that reads a Fahrenheit degree in double from an input dailog box, then converts it to celius and display the result in message dialog box. the formula for the conversion as follows : celiuse=(5/9)*(fahrenheit-32)?
Write a program that reads a string : Write a program that reads a string and outputs the number of times each lowercase vowel appears in it. Your program must contain a function with one of its parameters as a string variable.
Write a program that will first read in a positive integer : Write a program that will first read in a positive integer number, say n, from standard input. Then you need to create enough space in the heap via a call to malloc to hold an array of n integers.You then need to use array index operators to fill the..
Write menu-driven program that make coffee shop operational : 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.
List the six fundamental forms : The study lists six fundamental forms that communicate trustworthiness of an Internet store. List the six fundamental forms. Explain what fulfillment means and what the five components of fulfillment are according to the eCommerce Trust Study above. ..
Write a c program that will malloc up space dynamically : Write a C program that will malloc up space dynamically. The space should be able to hold exactly one integer value. After the space has been reserved, you should deposit the number 6 into the space. After the number 6 has been deposited into the spa..
What is the output of the given program : What is the output of the following program? summer(intNum1, intNum2); cout

Reviews

Write a Review

Programming Languages Questions & Answers

  Create a spreadsheet to calculate the total costs

Create a spreadsheet to calculate the total costs for each item, total cost, and percent of the total used for each item. Be sure to label columns and rows so it is clear what is in your spreadsheet. Also, type in your formulas and use functions..

  Design a small dictionary using the binary search tree

Design a small dictionary using the Binary Search Tree data structure. Each entry may include a word and its definitions. You should create the tree structure/dictionary using data input from a text file. After the dictionary is created, the user ..

  Create a project called menu player

Create a project called MenuPlayer which reads in a JSON representation of a restaurant menu. A menu has a name (ie Dinner Menu) and a list of menu items.

  Program to take input five numbers-display mean average

Write the program which takes as input five numbers and outputs mean average and standard deviation of numbers. If numbers are x1, x2 ,x3, x4, and x5, then mean is?

  Use two-dimensional array in javascript to solve problem

Using javascript. Use a two-dimensional array to solve the following problem: A company has four salespeople (1 to 4) who sell five different products (1 to 5).

  Web applications enable interaction between organizations

Web applications enable interaction between organizations and their clients. Find an interesting Web application on the Internet and present a short summary, and then answer the following prompts. 1. Why did you choose this application? 2. What kind ..

  Create function m-file called mass that requires two vector

Create a function M-file called mass that requires two vector inputs-the number of moles and the molecular weight-and returns the corresponding mass. Because you are providing vector input, it will be necessary to use the meshgrid functio..

  What is code reuse

What is code reuse. How does inheritance help achieve code reuse

  Write program for user to perform arithmetic operations

Write a program that lets the user perform arithmetic operations on fractions. Fractions are of the form a/b, where a and b are integers and b is not equal to 0.

  Write the constructor function makestk

Write the constructor function makestk, predicate function emptystk and mutator functions pushstk and popstk

  Write a function that computes a taxi fare.

Write a function that computes a taxi fare. In some cities, taxi fares are calculated based on start and end zones plus a per-minute charge. In this city, there are three zones (1, 2, and 3) and a graduated scale for time. Thus, your function shou..

  Write program to ask user for low and high integer

Write a program that asks the user for the low and high integer in a range of integers. The program then asks the user for integers to be added up.

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