Question: Topics: Getting started, variables, System.out, System.in , println, String.format Problem Specification For this programming assignment, you will be completing the implementation of a java program
Topics: Getting started, variables, System.out, System.in println, String.format Problem Specification For this programming assignment, you will be completing the implementation of a java program for the checkout system of a grocery store which sells rice by pound for $ eggs by the dozen for $ and French bread by loaf for $ Tax is Your program must first print out the following message on screen: Welcome to the checkout system of Awesome Grocery Store! Enter the weight of rice in pounds: After the user enters the weight of rice using keyboard, your program will print out the following message on screen: Enter the number of dozens of eggs: After the user enters the number of dozens of eggs using keyboard, your program will print out the following message on screen: Enter the number of loaves of French bread: After the user enters the number of loaves of French bread using keyboard, your program will calculate the total cost of sold items excluding tax called SUBTOTAL total tax, and total cost including tax called TOTAL and print out the following message on screen: Here is your receipt: SUBTOTAL: $X TAX: $Y TOTAL: $Z where X is the subtotal, Y is the tax, and Z is the total represented in dollars. Each of these values should be displayed with a dollar sign and two digits after the decimal point.How to calculate subtotal, tax, and totalConsider the example where a user wants to print a receipt for pounds of rice, dozen eggs, and loaves of French bread. Calculate the cost of the goods.cost of rice times cost of eggs times cost of French bread times subtotal cost of rice cost of eggs cost of French bread Calculate the tax on the goods. tax times subtotal times Calculate the total cost.total subtotal tax Example OutputFor a user who wants to generate a receipt for lbs of rice, dozen eggs, and loaves of French bread, a successful program will output: Welcome to the checkout system of Awesome Grocery Store!Enter the weight of rice in pounds: Enter the number of dozens of eggs: Enter the number of loaves of French bread: Here is your receipt:SUBTOTAL: $
TAX: $
TOTAL: $
Submission
You need to submit a single file named GroceryStoreCheckout.java. The incomplete file is posted on Canvas along with this assignment specification. Grading Criteria Codereadability: Using comments to explain logic: Correctness of Java syntax no compilation error: Proper scan of System.in: Proper usage of variables: Correct calculations of subtotal, tax and total: Program displays all required messages when given valid input: Program displays numeric values to specification: Passing all tests:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
