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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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