Display menu with price in the console

Assignment Help Other Subject
Reference no: EM132372418

Introduction to Computer Programming Assignment -

Upload a Java file for the following problem:

File Name: Order.java

Class Name: Order

Problem: Order only one item from the menu and generate an invoice for your order. The total amount of the invoice should include the menu item charge, 5% tax and, tip. Ask the user to enter a tip for the selected item. Add a tip to the total amount only if a tip is greater than zero. Display the receipt of the order.

Steps:

1. Display Menu with price in the console.

2. Read user choice of menu item.

3. Apply 5% tax on the selected menu item price.

4. Read tip amount from the user.

5. Add a tip to total amount if it is greater than zero.

6. Display selected item with price, tax amount, tip amount and, total amount.

Coding instruction: Use switch case and if selection for coding.

Expected Output:

Menu

1. Fries $5

2. Burger $7

3. Soda $4

4. Coffee $3

5. Donut $6

Enter your choice: 2

Enter tip($): 1

Thank you for the order!!

**Receipt**

Burger = $7

Tax = $0.35000000000000003

Tip = $1

Total Bill= $8.35

Reference no: EM132372418

Questions Cloud

How can businesses use technology and relationships : How can businesses use technology and relationships to reduce their environmental impact?
Presenting a speech on the contribution to holes : Which model is Joe's best choice if he is presenting a speech on the contribution to holes in the ozone by cattle?
What would be examples of valid selection methods : What would be examples of valid selection methods used by the human resource department to ensure selecting the appropriate candidate for a job.
What is the desired profit per unit : Projected sales revenue is $1770000 ($6.00 per unit) and target costs are $1563500. What is the desired profit per unit?
Display menu with price in the console : Introduction to Computer Programming Assignment - Display Menu with price in console. Display selected item with price, tax amount, tip amount and, total amount
Preparing a firm fixed price solicitation for the fielding : Do you include a requirement for the winning contractor to provide a warranty? Why or why not? What are some considerations?
Clearly explain to him the meaning of subprime debt : 1) Clearly explain to him the meaning of 'subprime debt'? What are the risks and advantages of such financial instruments?
What are the drawbacks of hybrid pay for the members : What are the drawbacks of hybrid pay for the members of the sales teams? Can we alter the hybrid scheme to overcome these drawbacks?
Responsibilities surrounding the sales of alcohol : What are the ways that IT can help comply with legal requirements and social responsibilities surrounding the sales of alcohol?

Reviews

Write a Review

Other Subject Questions & Answers

  Calculate the gross profit for each product

Calculate the gross profit for each product using the costs in part 1. Allocate the joint costs to the joint products using the net realizable method.

  How would you handle the repatriation

What kind of training would you give them prior to their departure for their new assignment? How would you handle their repatriation?

  Describe the social worker job activities

Describe the social worker's job activities and professional roles. Explain what brought the social worker to the field and their work history.

  Provide a historical perspective on the thirteen amendment

Provide a historical perspective on the 13th Amendment. Why do we have it? What was happening in America when we included it as an amendment?

  Read a theology of african american worship

Visit the websites for precise information on times of worship. Both may also provide transportation if you do not have access to it.

  Regarding evaluation of health risk statistics

Which of the following statements is FALSE regarding evaluation of health risk statistics?

  Explain the characteristics of a potential target

Review this week's Learning Resources and consider the possible characteristics of a potential target of that cyber victimization.

  Statistical process control issues

What does statistical control mean? What is the difference between capability and control? Why should we care about each of these?

  Explain the different types of sentencing systems

Explain the different types of sentencing systems used in the U.S. These include indeterminate, determinate, mandatory, and sentencing guidelines. Briefly explain each of these

  Definition of nursing and the metaparadigm theories

Both the ANA definition of nursing and the metaparadigm theories have the same concept. We need to understand that there are many factors that incorporate the care of our patients and factors as to why they are seeking our help. As nurses, we need..

  How the talk content illuminates stages of creativity

Conclude your summary with a reflection of the following: How the talk's content illuminates some of the stages of creativity, How the topic of the talk relates to the concepts of imagination and curiosity

  Describe the health care problem or issue

Create a 4-6 page annotated bibliography and summary based on your research related to best practices addressing a current health care problem or issue.

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