Question: Writ a java program that calculates the cost of individual items, including tax, and prints the grocery bill. Your program must do the following: 1.

Writ a java program that calculates the cost of individual items, including tax, and prints the grocery bill. Your program must do the following:

1. Ask the user to enter his/her full name.

2. Print a welcome message using the user's name.

3. Ask the user to enter the name of the item.

4. Ask the user to enter the price and quantity of the item.

5. Declare a constant variable that holds a tax rate equal to 15%.6. Calculate the total price of the item, including the tax.7. Print the grocery bill.

 

Note:

The class name of your Java program must be your first name.Your answer should have the code as text as well as the screenshot of the program output (using your own name) as a part of your answer. Otherwise, zero marks will be awarded.

  A typical run of the program Compile Messages jGRASP Messages Run I/O End ----GRASP exec: java Questionl

A typical run of the program Compile Messages jGRASP Messages Run I/O End ----GRASP exec: java Questionl Please enter your full name Sara Ali Clear Help Welcome Sara Ali to Danube supermarket What is the name of your item? Coke What is the price of your item? 3 enter the no of quantity of Coke 2 Interactions ************** ****************** Grocery Bill *** ITEM NAME **** ITEM PRICE **** quantity **** Total Coke 3.00 2 6.45 ----GRASP: operation complete. ||| Activate Windows Go to Settings to activa

Step by Step Solution

3.39 Rating (155 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Java Program public class Bard private static final double TAXRATE 015 public static void mainString args Get the users name SystemoutprintlnEnter you... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!