Question: Java language A2b - 1/0 and Arithmetic Assignment Instructions Make sure you review the Notes - Input and Output. In this part, you will solve


A2b - 1/0 and Arithmetic Assignment Instructions Make sure you review the Notes - Input and Output. In this part, you will solve a problem described in English. You are raising funds for a charity by selling items door-to-door. You can't figure out sales tax in your head, so you will use a program to do that. Assume each customer will buy 3 items. Your program will ask for the price of the first item and out the price of the first item. Then, the same for the second item, and then the third item. See the Sample Run below. Your program will then separately calculate the subtotal price without sales tax, the amoules of tax, i.e. assume you are in Orlando where the tax rate is 6,5%, and calculate the total price including the tax Then, output the subtotal, tax, and total. See the Sample Run below. Note: This program does not use any selection constructs, arrays, loops, or functions; just input/output, constants, variables, assignment statements, and arithmetic. Sample Run interaction with your program should look like this: (user input is bolded) Enter the price of the first item: 2.50 You entered $2.50. Enter the price of the second item: 8.00 You entered 58.00 Enter the price of the third item: 0 You entered 90.00 The subtotal of your order is $10.50 The subtotal of your order is: $ 20.50 The tax for your order is: s 0.68 The total with tax is: $11.18 Thanks for supporting
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
