Simple cash register

Assignment Help Other Subject
Reference no: EM13175229

The Pizza House wants you to write a program that simulates a simple cash register. The program firstly should ask the user to enter the price of the meal. Then, the program should calculate the sales tax (8.25% of the meal price) and add it to the meal price to obtain the total price, which should be displayed to the user. The program then ask for the amount tendered (the amount customer gives to pay the bill). After the user entered the amount tendered, the program should display the amount tendered, the total price of the meal and the change amount. 

Finally, after each transcation, the user is given the option whether to continue with the next transaction or quit the program.

Reference no: EM13175229

Questions Cloud

Smaller proportion of their income on food : Americans spend a smaller proportion of their income on food than any other industrial nation. A major reason for this is that we've industrialized our food supply in the same way that we produce cars, shoes, and television sets.
Ancient times : In ancient times, Egyptians thought that the combined light of the Sun and the brightest star in the nighttime sky, Sirius, created summer heat.
Spoils system or patronage system : Which of the following was not key in reducing the prevalence of the "spoils system," or patronage system, from American politics?
What is the law of supply : What is the law of supply, and what are the factors that cause shifts in supply? What is the law of demand and why is it important?
Simple cash register : The Pizza House wants you to write a program that simulates a simple cash register. The program firstly should ask the user to enter the price of the meal. Then, the program should calculate the sales tax (8.25% of the meal price) and add it to the m..
Describe inflation, unemployment rate, production : You have been hired as a consultant by your mayor to evaluate the increase in aggregate demand in the city where you live. Describe to the mayor one (1) aggregate demand and supply factor that would have the greatest impact on the economy of your ..
Legal implications for the employer vs the employee : Should the firm be legally allowed to fire her based on the employment-at-will doctrine?. Why or why not? What are the legal implications for the employer vs the employee in this particular instance?
Explain the short term and long term effects : A major breakthrough that allows for on-site generation of electricity for an investment in the generating capacity but after that essentially a zero variable cost of electricity.
Use of encouragers-paraphrasing : Describe your use of encouragers, paraphrasing, and/or questioning to elicit meaning from the client. Finally, comment on the difference between the interviewer naming or giving meaning to something a client says versus the interviewer eliciting a st..

Reviews

Write a Review

Other Subject Questions & Answers

  Compute the probability that more passengers show up

Approximation the divisional hurtle rates for each division. Imagine that all divisions use a 45 percent debt ratio for this purpose.

  Stress and desire for control on superstitious behaviour

Research the article: Keinan G (2002) The effects of stress and desire for control on superstitious behaviour. Personality and Social psychology Bulletin 28, 102-108

  Earthquake deformation cycle

What is the earthquake deformation cycle and what extra information can grain size provide you with?

  Explain workplace-based and task-based risk assessment

Classification of work activities, identification of hazards, and determination of risk, evaluation, control and review play a key role in a proper risk assessment programme. Explain how each of these steps should be performed Explain the diffe..

  Technological determinism and social constructionism

Based on what you have learned about out of the following theories; technological determinism, social constructionism, technological momentum, and actor-network approach, please answer the following questions:

  Nonevidentialism reasonable justifications of religious

Instead of arguing that religious beliefs can be justified based on prudential reasons, he instead posits that human beings have a "sense of divinity" that allows us to rationally form basic beliefs entailing God's existence. Are either of these t..

  Hiring based on religion

What reason would you give for requiring that the building engineer be of the same religion?

  What will account for seans low plasma na+

What gland is primarily affected if ACTH does not cause a normal elevation of cortisol secretion? What is this abnormality known as? What gland is primarily affected if ACTH does cause an elevation of cortisol secretion.

  Economic effects of the property tax

Discuss the economic effects of the property tax. Consider the fairness, purpose, and use of the tax. Provide appropriate examples.

  Experience of native american

After considering the background of Native American experience in our culture, should more efforts be made to encourage this group to enter the mainstream of society

  How to convert annotated bibliography

Complete the annotated bibliography of sources you plan to use in research paper. Find out what you should do to convert annotated bibliography.

  Overprescribe medication for adhd

Do you believe doctors overprescribe medication for ADHD? Explain your answer.

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