Generate an invoice and display the receipt of the order

Assignment Help Basic Computer Science
Reference no: EM132372404

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: EM132372404

Questions Cloud

Pricing structure for the products you are selling : How would you research and decide upon your pricing structure for the products you are selling?
Analysis of the organizational efficiency : The new CEO has selected your consulting firm to give him/her an analysis of the organizational efficiency.
Name the key stakeholders you will consult : Name the key stakeholders you will consult when developing the policy. How will you explain the benefits of the policy to them?
What is important in sustainable development : What is important in sustainable development?
Generate an invoice and display the receipt of the order : CSC210 Introduction to Computer Programming Assignment, San Francisco State University, USA. Generate an invoice and Display the receipt of the order
Disproportionate punishments in school settings : Do you support the notion that there are disproportionate punishments in school settings (K12) as it relates to race?
Prepare layout in indesign using layers : The purpose of this assignment is to understand how to prepare a layout in InDesign using layers, a very rudimentary grid, and a bleed.
Think about own consumption of video : What kinds of entertainment and informational videos are you most likely to view? Why? Do you often find yourself viewing marketing videos
What is a branded community : What is a branded community? If you are a member or one or more branded communities

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Fault tolerant network design

Explain three approaches that network administrators can use in order to ensure a fault tolerant network design without a single point of failure. Of the three approaches discussed, determine the single approach that you would recommend for an ent..

  Describe the type and basic uses of the system

Describe the type and basic uses of the system

  Demonstrate skills in drawing tools

To begin to combine and demonstrate skills in drawing tools, tweens, working with text, and telling a story

  What is the predicted total effect on labor demand

What is the predicted total effect on labor demand?

  Analyze the situation in terms of efficiency

Assume the chances of winning at trial are 100%, but the cost of a lawyer is $5,000. Analyze the situation in terms of efficiency, incentives, and outcomes.

  Impact businesses and government

You may also want to include whether your prediction will impact businesses and government, individuals (users), or both.

  Define cost shifting in your own words.

QUESTIONS: Define Cost Shifting in your own words. * Do you think that it is a fair practice or should it be legally banned?

  Seven step and four step sdlc models

Compare and contrast seven step and four step SDLC models?

  Describe two potential ramifications

Identify and discuss three exemplar ways in which digital technologies have significantly eroded personal privacy values - What do you understand by the word

  Workplace example, to maintain confidentiality

Identify a recent (within the last six (6) months) ethical dilemma or ethically questionable situation relating to ICT that you are familiar with. This situation can be either in the media (for example one you have sourced from a newspaper, or onl..

  Find the maximum temperature in the cycle

Determine the second-law efficiency of the cycle and the rate of energy output with the exhaust gases when they are purged.

  Retained earnings for mr husker tuxedos

What is the year-end 2015 balance in retained earnings for Mr. Husker's Tuxedos? (Enter your answer in millions of dollars.)

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