BulkDiscounts BulkDiscounts.java 1 public class BulkDiscounts 2 - { 3 4- 5 6 7 8 9...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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: "); 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 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
Expert Answer:
Related Book For
Computer Systems A Programmers Perspective
ISBN: 9781292101767
3rd Global Edition
Authors: Randal E. Bryant, David R. O'Hallaron
Posted Date:
Students also viewed these programming questions
-
1. An interceptor missile system meant for area denial to enemy aircraft has a 4kg warhead. The engine has an Isp of 235 seconds and needs to develop a DELTA V of 750m/s with only 10kg of solid fuel...
-
IBS 660 Management Accounting GROUP ASSIGNMENT This coursework assignment constitutes 30% of the assessment for this course. This is a group project. Each team will have 5-6 members. The teams are...
-
(20 points)Write a program that prompts the user to input five decimal numbers. The program should then add the five decimal numbers, convert the sum to the nearest integer, and print the result....
-
Display the TERM_DESC, COURSE_NAME, BLDG_CODE and ROOM for every course evertaught by faculty member John Blanchard. Question 2 Display the S_LAST, S_FIRST, COURSE_NAME, TERM_DESC and GRADE values...
-
Which is the more efficient algorithm: direct least squares based on solving the normal equations by Gaussian Elimination, or using Gram-Schmidt orthonormalization and then solving the resulting...
-
View the data. Read the requirements. Requirement 1. Compute Road Trip, Inc.'s current ratio, debt ratio, and earnings per share. Round all ratios to two decimal places. Begin by selecting the...
-
Microsoft considers six principles important to the ethical development and deployment of AI: faimess, reliability and safety, privacy and security, inclusiveness, transparency, and accountability....
-
Record the following transactions using T accounts, assuming the periodic inventory system is used: Aug. 4 Sold merchandise on credit to Rock Company, terms n/30, FOB destination, $2,520. 5 Paid...
-
You are a lead IT auditor conducting an assessment of a mid - sized financial institution's IT governance framework. During your review, you discover that the organization has recently implemented...
-
The types of impact of corporate white collar crime on society vary. As a criminologist it is paramount understand the importance of unsafe products that are legally manufactured in this country....
-
explain why you can get the initial conditions from the tangent point? 1) Solution: Given: y": = 12x 2, f(x) =x+5 is tangent to y(x) at x = 1. We can deduce 2 initial conditions from the given...
-
Tan-O-Rama is a local tanning salon. Its regression output is as follows: Intercept X Variable 1 Coefficients 4,621.07 2.87 Suppose that the company charges $7.00 per tanning session. Required: 1....
-
Home has 1200 units of L and Foreign has 3600 of units of L available. Both countries can produce coffee and cloth. The unit labour requirements for coffee and cloth in Home is 4 and 2 respectively....
-
Problem 9 - 2 1 ( Algo ) Performance Report for a Nonprofit Organization [ LO 9 - 1 , LO 9 - 2 , LO 9 - 3 , LO 9 - 4 ] The Saint Lucia Blood Bank, a private charity partly supported by government...
-
After watching the video, please answer the below question. https://www.youtube.com/watch?v=RWRJLynQWnU&feature=youtu.be Are the rental scams on sites like Airbnb.com Links to an external site. or...
-
(b) We are currently at year 0. Consider a perpetuity that pays $250 at the end of each odd year and $150 at the end of each even year. The term structure is flat at 10% per year. Determine the...
-
For each of the following reactions, express the equilibrium constant: a) H20 (I) H2 (g) + 02 (g) Ke = 1.0x107 b) Fe2 (g) 2F (g) Ke= 4.9 x 10-21 c) C (s) + O2 (g) d) H2 (g) + C2H4 (g) C2H6 (g) Ke =...
-
How would you use dup2 to redirect standard input to descriptor 5?
-
Consider the following code, in which we have omitted the expression being computed: short arith3 (short x, short y, short z) { } short p1. short p2 short p3 = short p4 = return p4; The portion of...
-
Suppose that a 1 MB file consisting of 512-byte logical blocks is stored on a disk drive with the following characteristics: For each case below, suppose that a program reads the logical blocks of...
-
The 2014 financial statements of LVMH Moet Hennessey-Louis Vuitton S.A. are presented in Appendix C of this book. LVMH is a Paris-based holding company and one of the worlds largest and best-known...
-
What is the purpose of the materials requisition?
-
What is the formula for calculating the factory overhead applied rate?
New KS2 Maths SAT Buster Geometry Measures And Statistics 1st Edition - ISBN: 1789081386 - Free Book
Study smarter with the SolutionInn App