Question: Write a Java program that uses concepts through chapter 8, and meets the following requirements: You are to provide a program to create a bill/receipt
Write a Java program that uses concepts through chapter 8, and meets the following requirements: You are to provide a program to create a bill/receipt for purchases from a Bakery Shop. The bakery makes cookies, cupcakes, cakes, pies, rolls and bread. You will create an array to hold the names of the item and the item price. A clerk will enter an item name and the item amount. Your program will calculate the cost of each item, print the item, add the cost to a total. Next the customer will be asked if they want to purchase more items, if they do you will allow the clerk to enter the next item, else you will print out the total for all that customers purchases.
Cookies .50
Cupcakes 1.00
Pies 5.00
Cake 6.00
Rolls 2.50
Bread 3.00
Purpose: Create a java program from detailed directions. Ability to: Follow established programming conventions for writing java programs Create variables appropriately named Create and populate an array Use if statements appropriately Use for statements as needed Use the print statement for output May use the equals method May use a parallel array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
