Question: Write a program in java for the bookstore: The program prompts for the amount of a single item that is being purchased. It will then

Write a program in java for the bookstore:

The program prompts for the amount of a single item that is being purchased.

It will then ask the user to input:

  • "" if they are a student (for a 2% discount)
  • "FS" if they are faculty or staff (for a 5% discount)
  • "N" if neither applies. (for NO discount)

After the discount has been applied(or not), add 6.75% sales tax.

Print out the total amount due.

hint: System.out.printf("statement " + "%10.2f"var);//this

allows for 10 total digits with 2 decimal places)

Input:

Discount code

Amount of transaction

 Write a program in java for the bookstore: The program prompts
for the amount of a single item that is being purchased. It

Write a program for the bookstore: The program prompts for the amount of a single item that is being purchased. It will then ask the user to input: - " S " if they are a student (for a 2% discount) - "FS" if they are faculty or staff (for a 5\% discount) - " N " if neither applies. (for NO discount) After the discount has been applied(or not), add 6.75% sales tax. Print out the total amount due. hint: System.out.printf("statement " + "\%10.2f",var);//this allows for 10 total digits with 2 decimal places) Input: Discount code Amount of transaction Output: discount) - " N " if neither applies. (for NO discount) After the discount has been applied(or not), add 6.75% sales tax. Print out the total amount due. hint: System.out.printf("statement " + "\%10.2f",var);//this allows for 10 total digits with 2 decimal places) Input: Discount code Amount of transaction Output: The amount owed by the customer Sample run | run: Enter price 12 enter applicable discount code: Your total is 12.55BU1LD SJCcesSEUL (total time: 6 seconds)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!