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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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