Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started