Create a solution that allows a customer to purchase pizzas

Assignment Help Computer Engineering
Reference no: EM131274216

Lab Assignment

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: EM131274216

Questions Cloud

Are there leadership changes needed : In which type of role would the consultant work, in relation to the various departments and work teams in the company, to facilitate change? In order to achieve the desired changes being recommended, should the consultant take an active leadership..
Evaluate two opportunities for your chosen organisation : BSBMKG501 Identify and evaluate marketing opportunities - identify and evaluate two opportunities for your chosen organisation. In part B, you will explain the opportunities to your peers in a 15-20 minute presentation.
Econ 3300a - essay assignment : Students can choose any business and economic policy area such as competition policy, price and entry regulations, international trade policy, environmental policy, policies related to resource development and exploitation, impact of macroeconomic an..
Fog computing same technology or different : Are the Cloud computing and Fog computing same technology or different? what is the difference between them? Please add any reference for this answer
Create a solution that allows a customer to purchase pizzas : 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 and a grand total amount including 6% tax.
Examine health patterns and practices transmitted : Examine health patterns and practices transmitted across generations.
Changes the permissions on all the existing files : Using "absolute" (numeric) notation, changes the permissions on all the existing files in the ~/NetworkingClass/scripts directory so that the "user" (owner) has all permissions, all users in the same group have read and execute permissions, and al..
Effects of social networking including its benefits : In your opinion and based on your research, submit a post discussing the effects of social networking including its benefits, its negative influences, and how a Christian should deal with the technology?
Minimize the number of gates in design : Design a gate-level circuit that computes the function , where the input X is a 3-bit unsigned number represented by X2X1X0 and the output Y is a 7-bit unsigned number represented by Y6Y5Y4Y3Y2Y1Y0. Minimize the number of gates in your design

Reviews

Write a Review

Computer Engineering Questions & Answers

  Devise a data structure and a suitable algorithm

As stated in the text, a priority queue is a queue in which certain items are allowed to jump to the head of the line if they meet certain conditions - Devise a data structure and a suitable algorithm to implement a priority queue.

  Illustrate the system processed from the viewpoint

Illustrate the system processed from the viewpoint

  Explain a control object

express Control Object Properties. Why do we use them?

  Explain the formal change management system

The project could fail because the cost of a key component has increased and we could build a product that does not achieve its production cost target.

  Explain why you think the impact will or will not occur

Based on this description, the group should develop an analysis of the impacts such a development would have on one of the following: corporate sales and marketing, manufacturing, or management consulting.

  Produce the result as the user instructed on the screen

Produce the result as the user instructed on the screen with appropriate messages.

  Give important aspect of an operating system

What is the the most critical or useful function provided by an operating system.

  Some it department policies are designed to prevent

some it department policies are designed to prevent behaviors by it staff. while some depend upon the employee

  What is a network of many hacked smartphones called

What is the block size used by SHA-512 algorithm? What is a network of many hacked smartphones called? Which of the following can be utilized as traceroute tool? Which of the following are Mobile Network Based Attacks?

  Describe what is the purpose of the business impact analysis

What is the purpose of the business impact analysis (BIA)? What is the difference between a disaster recovery plan (DRP) and a business continuity plan (BCP)?

  Describe the manner in which you can employ the purchased

imagine you are an administrator for a large corporation that has just purchased a new company. to access some of the

  We considered building a balanced or full bst from a sorted

we considered building a balanced or full bst from a sorted array. assume that the array has n 2k-1 elements in sorted

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