Question: BulkDiscounts BulkDiscounts.java 1 public class BulkDiscounts 2 - { 3 4- 5 6 7 8 9 10 11 12 13 14- 15 16 17

BulkDiscounts BulkDiscounts.java 1 public class BulkDiscounts 2 - { 3 4- 5 6 7 8 9 10 11 12 13 14- 15 16 17 18 19 99872274 20 21 23 25 26 27 28 29 public static void main(String[] args) { } //create a Scanner System.out.println("Welcome to Rhodes Hardware. When buying nuts, bolts, screws, and washers. The more you buy the cheaper each singular item is."); System.out.println("nuts: $0.05 each."); System.out.println("bolts: $0.09 each"); System.out.println("screws: $0.07 each"); System.out.println("washers: $0.03 each"); System.out.println("For every 100 units the customers buys they receive a 10% discount."); System.out.println("For every 500 units the customers buys they receive a 20% discount."); System.out.println("For every 1000 units the customers buys they receive a 30% discount."); /*create the variables you need to successfully run this program. Most of the System.out.printlns (S.o.p) have been entered for you to match the final output. Do not change a S.o.p. that is already printed int the started code. You will have to create the final receipt output to look like the the one in the assignment instructions. Make sure that the final receipt puts in the users data and correctly does the math for the correct discounts. */ Submit + Continue Save System.out.println("Enter the number of nuts you want: "); System.out.println("Enter the number of bolts you want: "); System.out.println("Enter the number of screws you want: "); System.out.println("Enter the number of washers you want: "); 100 points Status: Not Submitted You are to write a code that gives discounts at a hardware store. The hardware store sells Nuts, Bolts, Screws, and Washers. Nuts $.005 each Bolts $0.09 each Screws $0.07 each Washers $0.03 each The hardware store gives discounts if you buy in bulk. If you buy over 100 units you receive a 10% discount. If you buy over 500 units you receive a 20% discount. If you buy over 1000 units you receive a 30% discount You must print a receipt as follows (the numbers are subject to change to what the user imputs and should not be entered virbatum) Orders 1212.0 1212.0 1212.0 1212.0 Reciept Items Nuts Bolts Screws Washers Discount (-18.18) (-32.724) (-25.452) (-10.908) Price 42.42 76.35 59.38 25.45 N
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
