Question: Compute the program in java Write a Java program to perform the grocery check-out procedure for a simple store with exactly 5 products Product Price

Compute the program in javaCompute the program in java Write a Java program to perform the

Write a Java program to perform the grocery check-out procedure for a simple store with exactly 5 products Product Price per pound 0.44 $0.99 Bananas Apples Cucumbers $ 1.19 Carrots Oranges 0.89 $0.79 Prompt and get the weight for each product, then compute the total bill. Now, determine the possible discounts for the purchase. Customers can get 2 types of discounts: 10% discount for customers with loyalty cards 10% discount for customers who purchased for $100 or more. This discount increases to 15% if the customer purchased for $200 or more. Both types of discounts can be combined. Our program should give maximum possible discount to each customer. Save your program as Store.java and upload it to complete the assignment You can assume that all the user inputs are valid & the user will enter O for products (s)he does not purchase no need to do any input validation explicitly. Here are a few sample inputs & outputs (but your program should work for all valid inputs. TA will test with other values) Sample run #1A. Enter the weight for Bananas: 10 Enter the weight for Apples: 11 Enter the weight for Cucumbers: 9 Enter the weight for Carrots: 10.5 Enter the weight for Oranges 10 Your total is $43.25 Do you have loyalty card (y)? n Have a nice day

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!