Demonstrate an understanding of working with arrays

Assignment Help Computer Engineering
Reference no: EM131272001

Lab

Goal: The purpose of this lab is to demonstrate an understanding of working with arrays as instance variables.

You are working at Mama Francesca's Pizza Store. Your boss has asked you to create a new pizza ordering system to help customers buy pizzas. The store only sells one size of pizza, costing $10.00, but customers have the opportunity to add toppings (one at a time) to their pizza according to the following price chart.

Topping Cost
Pepperoni $1.50
Mushrooms $0.75
Sausage $2.50
Green Peppers $1.25

Note: A user cannot add a topping to their pizza more than once. In such a case, the user should be notified of an error.

Create an object oriented solution that allows a customer to purchase between 1 and 3 pizzas, add toppings to each pizza, if desired, and then displays a receipt, including the details for each pizza, a pretax

Total amount, and a grand total amount including 6% tax. Hint: When thinking about a validating mutator for adding a topping, think how the mutator might not just return true or false. Rather, it might return an integer that describes one of three possibilities: The topping was added to the pizza, the topping was not added to the pizza because it's already on it, or the topping was not added to the pizza because it was an invalid topping selected Note: Remember the good design principles you have already learned in the course. In addition, you must demonstrate use of an array as an instance variable. Do not use ArrayLists and make sure your implementation class uses methods other than just main(). The example run below shows how the program would run. Pay careful attention to the sample run and try to have your program run exactly the same.

Reference no: EM131272001

Questions Cloud

Guidance system of ship-what is reliability of the computer : The guidance system of a ship is controlled by a computer that has three major modules. In order for the computer to function properly, all three modules must function. Two of the modules have reliabilities of .97, and the other has a reliability of ..
Read an email message : Our final company orientation of the year will be held on Dec. 20. In preparation for this session, please order 120 copies of the Policy handbook, the confidentiality agreement, the employee benefits Manual, please let me know if you anticipate any ..
Compute overall system reliability under plan : A production line has three machines A, B, and C, with reliabilities of .91, .93, and .86, respectively. The machines are arranged so that if one breaks down, the others must shut down. Engineers are weighing two alternative designs for increasing th..
What is the amortization amount : what is the amortization amount reported as an "other expense" on Schedule C - How should he report these activities on his Year 2 return?
Demonstrate an understanding of working with arrays : The purpose of this lab is to demonstrate an understanding of working with arrays as instance variables. Your boss has asked you to create a new pizza ordering system to help customers buy pizzas.
Create class named circle with fields named radius and area : Create a class named Circle with fields named radius, area, and diameter. Include a constructor that sets the radius to 1. Also include public properties for each field.
Creating a domain model class diagram : Creating a Domain Model Class Diagram-  Use at least three quality resources outside of the suggested resources in this assignment. Note: Wikipedia and similar Websites do not qualify as quality resources.
Will this equalizer improve system performance : find the noise power at the output of your equalizer within the 100-kHz bandwidth of interest. Will this equalizer improve system performance?
Find the output snr when beam forming is used : Assuming ρ = 10 dB, find the output SNR when beam forming is used on the channel with equal weights on each transmit antenna and optimal weighting at the receiver. Compare with the SNR under beam forming with optimal weights at both the transmitte..

Reviews

Write a Review

Computer Engineering Questions & Answers

  Make a swing applet with a jbutton labeled

build a Swing applet with a JButton labeled "Who's number one?." When user clicks the button, display your favorite sport team in a large font (Use Houston Rockets for the sports team). Please save the file to JNumberOne.java

  Define the boolean function that returns one

The tic-tac-toe is a 2 player's game using a 3x3 grid of squares. The players alternate turn. Each player places a mark (one player uses X and the other O) in a square. The first player with three marks in a row, in a column or on a diagonal wins ..

  Questioninline internal procedures deposit and withdraw

questioninline internal procedures deposit and withdraw. that is replace references to them by the bodies of

  What technologies are used in windows server 2008

What technologies are used in windows server 2008

  Write down logical description of the initial situatio

Write down logical description of the initial situatio .Write a sentence describing the Go action. Use a successor-state axiom.

  Q1 digimax multimedia is a multimedia content development

q1. digimax multimedia is a multimedia content development company would like to release various educational cddvd in

  Write down a shell program

-Check if there is exactly 2 filenames, if not, printout error message

  Computing the unit price of items

The Manager of the Supermarket would like to be able to compute the unit price of items sold there. To do this the program must input the name and the price of item and its weight in pounds and ounces.

  Describe the meaning of storage density

Describe the meaning of storage density

  List four different html tags which define the structure of

question 1 list 4 different html tags that define the structure of a document and briefly define the function of

  How to calculate the input value required to yield

Which program evaluates the most important solutions for problems with multiple input values.

  Name the guidelines and additional decisions which can be

question 1 which of the guidelines and additional decisions can be incorporated in an automatic statistical thesaurus

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd