Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

java programming File Name: Order.java Class Name: Order Problem: Order only one item from the items list and generate an invoice for your order. The

java programming
image text in transcribed
File Name: Order.java Class Name: Order Problem: Order only one item from the items list and generate an invoice for your order. The total amount of the invoice should include the item charge, 10% tax and, shipping charges. If the invoice total is greater than $75 then offer a free shipping otherwise charge $5 for an order. Display the receipt of the order. Steps: 1. Display Items list with price in the console 2. Read user choice to order an item 3. Apply 10% tax on the selected item price 4. Read the shipping amount (not required to take input from the user) 5. Add a shipping amount to the total only if the total is less than or equal to $75 6. Display selected item with price, tax amount, shipping amount and, total amount Coding instruction: Use switch case and if selection for coding. Expected Output 1: Expected Output 2: Items Items 1. Alexa $100 1. Alexa $100 2. Charger $20 2. Charger $20 3. Kindle $80 3. Kindle $80 4. Earphone $30 4. Earphone $30 5. USB Drive $10 5. USB Drive $10 Enter your choice :: 1 Enter your choice ::5 Thank you for the order!! Thank you for the order!! Alexa = $100 USB Drive = $10 Tax = $10.0 Tax = $1.0 Shipping = $0 Shipping = $5 Total Bill = $110.0 Total Bill:= $16.0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 9 For Linux UNIX And Windows Advanced Database Administration Certification Certification Study Guide

Authors: Roger E. Sanders, Dwaine R Snow

1st Edition

1583470808, 978-1583470800

More Books

Students also viewed these Databases questions