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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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