Calculate the total cost of all the coffee bills

Assignment Help C/C++ Programming
Reference no: EM131812769

The language is c++.

Product Cost per Ounce Plain Coffee $0.13
Latte $0.23
Macchiato $0.25
Frappuccino $0.28

Determines the number of each type of cup to reduce the number of Shot cups used.

Add functionality to your program so that a Regular (8 oz) cup will be used instead of multiple Shot (1 oz) cups if the number of Shot cups needed exceeds 3.

For this project, your list MUST include the following:
- a function that displays the menu, prompts user for a choice, validates the choice and returns a valid option.
- a function that accepts a number of ounces and displays the number of Venti, Grande, Regular and Shot cups needed
- a function that accepts a type of coffee and a number of ounces ordered and returns the base cost of the coffee
- a function that ONLY accepts a name, type of coffee and number of ounces and displays the coffee bill.

Content and format of bill should match the Sample Output

Make sure your program uses the values returned from your functions. Any functions that need input to perform a task will have to accept parameters. Global variables are prohibited.

1. Add functionality to calculate the total cost of all the coffee bills in the text file. Display the total cost after displaying the individual coffee bills. Make sure your program will correctly calculate the total cost. The format should match the one in the Sample Output.

2. Write a function that displays the menu, prompts user for a choice, validates the choice and returns a valid option

3. Write a function that accepts a number of ounces and displays the number of Venti, Grande, Regular and Shot cups needed formatted as shown in the Sample Output.

4. Write a function that accepts a type of coffee and a number of ounces and returns the base cost (sales tax not added) of the coffee.

5. Write a function that only accepts a name, a type of coffee and a number of ounces and displays the coffee bill.

Reference no: EM131812769

Questions Cloud

Summarize briefly the amount and types of pollutants : Summarize briefly the amount and types of pollutants released from a local industry.
Prepare a contribution format income statement : Prepare a contribution format income statement for the company as a whole. (Round your percentage answers to 2 decimal places.)
Find the expected value to the company of a single policy : An insurance company will sell a $10,000 one-year term life insurance policy to an individual in a particular risk group for a premium of $368.
Briefly discuss the user interfaces of operating systems : Briefly discuss the user interfaces of operating systems. Discuss how the round robin scheduling algorithm works. Briefly discuss how virtual memory works.
Calculate the total cost of all the coffee bills : Write a function that displays the menu, prompts user for a choice, validates the choice and returns a valid option - Write a function that accepts a type
Determine the equivalent units for september for mixing : Determine the equivalent units for September for mixing, materials, and conversion. (Round your answers to 1 decimal place.)
Compute the expected value of X : An insurance company estimates that the probability that an individual in a particular risk group will survive one year is 0.99. Such a person wishes to buy.
Do you find to be the most helpful and effective : Which theoretical perspective, that guides the nursing process with assessment of the family, do you find to be the most helpful and effective?
Discuss the major components of a good security policy : Securing a network consists of much more than just installing the appropriate hardware and software. Discuss the major components of a good security policy.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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