Question: Part 2: Programming(10 points Write a complete Java program in a source file to be named Assignment3.java to help a supermarket that awards coupons depending

 Part 2: Programming(10 points Write a complete Java program in a
source file to be named Assignment3.java to help a supermarket that awards

Part 2: Programming(10 points Write a complete Java program in a source file to be named Assignment3.java to help a supermarket that awards coupons depending on how much a customer spends on groceries. For example, if you spend S50, you will get a coupon worth eight percent of the amount. The following table shows the percent used to calculate the coupon awarded for different amounts spent. Your program calculates and prints the value of the coupon a person can receive based on groceries purchased. Your coupon value should be printed with currency format. (See the example Wages java posted on Blackboard under the "Course Documents> More Code Example") Moncy Spent MacBook A opion command command opton a myasucourses.asu.edu 758463- Less than $10 From $10to 560 Mare than 560 to $150 More than S 150,0 More than $210 Sample Outpat wer input is in RED Please enter the cost of your groceries: 3 You win a discount coupon of I8/N of your purchase) $2.80 Sample run 2 Please enter the cost of your groceries: 23456 You win a discount "upon of (141% of eur purchase) S3.283 84 Sample run 3 Please enter the cost of your groceries: You are not eligible for a coupon this time Submi your hemewark by ollening the instructions below Go to coune web site (my.asa.edu and then click on thg Assigment tab. Upkoad your Asizemsn JJaya file on-lime wing the Askigmmnt3 nk Assigamem3 jarva should have the following, in order In comments, the assignnen I leader deershed in portant Not' la comments, the answers to questions to pan I o The weking Java code requested in Part 2. e Make sure Asignment3 jina compiles and nuns before uploading your file NO LATE ASSIGNMENTS WILL BE ACCEPTED. MacBook Air 3

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!