Question: Question 2 (50 pts) Write a Java program for Shopping Bill. Write a Java program that will ask the user to enter the number of

Question 2 (50 pts) Write a Java program for Shopping Bill. Write a Java program that will ask the user to enter the number of lines in the bill than asks him to enter the name, price and quantity of the item in each bill line. Next, the program displays the total of the bill and the most expensive item. Finally, add tax 12% to the bill total. Sample Run: Enter the number of lines in the bill: 3 Enter item name: Mouse Enter price: 7 Enter Quantity: 2 Enter item name: Keyboard Enter price: 12 Enter Quantity: 1 Enter item name: Screen Enter price: 95 Enter Quantity: 2 Total before tax: 216 Tax: 25.92 Total after tax: 241.92 The most expensive item: Screen
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
