Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Programming The Perl DBI Database Programming With Perl

Authors: Tim Bunce, Alligator Descartes

1st Edition

1565926994, 978-1565926998

Students also viewed these Databases questions

Question

=+ Is the information presented in an objective manner?

Answered: 1 week ago

Question

Question How are IRAs treated for state tax law purposes?

Answered: 1 week ago