Calculate total cup cost by multiplying the number of cups

Assignment Help Other Subject
Reference no: EM131085281

1. Jerry Feingold wants a program that will help him calculate the amount to tip a waiter at a restaurant. The program should subtract any liquor charge from the total bill and then calculate the tip (using a percentage) on the remainder. Finally, the program should display the tip on the screen. Desk-check your solutions algorithm using $85 as the total bill, $20 as the liquor charge, and 20% as the tip percentage, Then desk check using $35 as the total bill, 0$ as the liquor charge, and 15% as the tip percentage.

 2. Party-On sells individual hot/cold cups and dessert plates for parties. Sue Chen wants a program that allows her to enter the price of a cup, the price of a plate, the number of cups purchased, and the number of plates purchased. The program should then calculate the total cost of the purchase, including the sales tax. Finally, the program should display the total cost on the screen. Desk-check your solutions algorithm using $0.50 as the cup price, $1 as the plate price, 35 as the number of cups, 35 as the number of plates, and 2% as the tax rate. Then desk-check it using $0.25, $0.75, 20, 10, and 6%

3. Modify the answer to question 1 as follows. Jerry will be charging the total bill, including the tip, to his credit card. Modify the soluction so that, in addition to calculating and displaying the appropriate tip, it aslso calculates and displayes the amount charged to Jerrys credit card. Desk-check the algorithm using $50 as the total bill, $5 as the liquor charge, and 15% as the tip percentage.

Below are the completed algorithms for questions 1 & 2.

Output: tip Input: total bill liquor charge tip percentage

Algorithm:

1. enter the total bill, liquor charge, and tip percentage

2. calculate the tip by subtracting the liquor charge from the total bill, and then multiplying the remainder by the tip percentage

3. display the tip

1. Output: total cost of purchase Processing: total cup cost total plate cost subtotal

Input: cup price plate price number of cups number of plates sales tax rate

Algorithm:

1. enter the cup price, plate price, number of cups, number of plates, and sales tax rate

2. calculate the total cup cost by multiplying the number of cups by the cup price

3. calculate the total plate cost by multiplying the number of plates by the plate price

4. calculate the subtotal by adding together the total cup cost and total plate cost

5. calculate the total cost of purchase by multiplying the subtotal by the sales tax rate, and then adding the result to the subtotal

6. display the total cost of purchase

Reference no: EM131085281

Questions Cloud

Verge of moving into the next stage : What market characteristics lead you to feel this way? Is there evidence that any of these markets are on the verge of moving into the next stage of the life cycle? Explain?
Write a paragraph about polar bear : Write a paragraph about polar bear. Tell us a little about the biology of the species. What kinds of cells does it have? What are some of the organelles in its cells.
Discussion of the effectiveness of such techniques : From a financial management perspective, critically evaluate the techniques used by organizations in appraising projects along with a discussion of the effectiveness of such techniques and comment on the capability to incorporate project and econo..
How chemical reactions occur in the body : How to design an experiment using the scientific method. The primary structures in each type of cell and the role of each structure. How does each cell makes energy for cellular processes? How chemical reactions occur in the body.
Calculate total cup cost by multiplying the number of cups : Party-On sells individual hot/cold cups and dessert plates for parties. Sue Chen wants a program that allows her to enter the price of a cup, the price of a plate, the number of cups purchased, and the number of plates purchased. The program shoul..
Capital organizational structure of a company : If indeed the software industry is driven by ‘brains and ideas' and not by ‘plant and equipment' (like automotives), what would the implications of that be on the ‘capital' organizational structure of a company and the need for a healthy mix of eq..
What are the major objectives of a budget system : What are the major objectives of a budget system? Describe the features of cash, revenues and expenditures. Give examples of each category with a linked budget objective. Consider the first line example in this table. Complete the table describing t..
Discuss joyce use of setting in araby : Discuss Mason's use of setting in "Shiloh." How does it relate to the characters of Leroy and Norma Jean? Does she ever use locations symbolically?
A financial analysis on an existed business plan : I need a financial Analysis on an existed business plan on keller pizza shop. ,The financials and I have a CPU price of $7.93 for sausage Pizza below is the calculation and formula I used.

Reviews

Write a Review

Other Subject Questions & Answers

  Importance of feminist research on women of color

Transnational feminist theorists discuss the importance of feminist research on women of color, because often they are considered victims by white feminism.

  Criminal justice in action

Imagine that you are going to prepare a group of prospective jurors for an upcoming trial.

  Personality disorders impair peoples ability

Personality disorders impair people's ability to function with other people without having anxiety, depression, delusions, or hallucinations.

  Interaction between non-western and western music and why

Which one characteristic of the following do you think is the most influential in the interaction between Non-Western and Western Music and why?

  What are the common titles for god which reflect

What are the common titles for God which reflect that masculine dominance? Do some feminists have a case in their criticism of the overly patriarchal nature of biblical religion?

  What is the goal of your health promotion project

Health Promotion Project- What is the goal of your health promotion project? What social determinants have contributed to the health issue that is the focus of your project

  Produce a reflective and coherent essay to summarize

Produce a reflective and coherent essay to summarize and integrate the main arguments about the health care system in all the world, for example ;

  Define the backhaul connecting several campuses

Write a 2 page proposal for the backhaul connecting several campuses for your company in one metropolitan area. All of the campus have 802.11n cellular networks.

  What is the maximum length of the access control list

What is the maximum length of the access control list creatable for this access control matrix?

  Why is geography and location relevant to the application

What is explicitly geographical about the application (i.e. why is geography/location relevant to the application)? What data sets would be required? What form of GIS data representation would be most suitable (vector or raster) ?

  Explain the history and core values of the coalition

Create a 15- to 20-slide Microsoft PowerPoint presentation that describes the steps that you will take to develop the coalition, Include the following: Explain the history and core values of the coalition. Describe the need that propelled this coali..

  Competition stayed cold

"Following World War II, the nations of the world attempted new measures to prevent another World War from occurring. At the same time, the world became increasingly divided between two powerful and competing sets of alliances, known as the Cold War.

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