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

Simulating the turing machine

Describe how to simulate the Turing machine along with singly infinite tape on the Turing machine with the doubly infinite tape. (Be sure to handle the can't move left" spec

Boolean expressions to work out your logic

Write a program that determines, for each of the five hands of the game, whether or not then Ace is played. Use the truth tables and Boolean expressions to work out your log

New network equipment based on the above description

A fast and reliable PLC communications network is important to ensure that production remains uninterrupted. If equipment failure occurs, time is spent on troubleshooting an

Implement the solution for tracking the number of subscribe

In a social media news feed, users are required to subscribe to the news feed before receiving any news or updates. Users can only subscribe to each news feed only once up t

Provide the different kinds of access protocols

explain an example of the Public Key Infrastructure that would explain the differing usages of symmetric and asymmetric encryption and how these encryption methods might use

Define your usage of the mailing list

plan an E-R Diagram showing each entity, its attributes, and it relationships to the other entities. State any assumptions you make. Also Describe your usage of the mailing

Efficiency of variable n using big-o notation

Classify its efficiency in terms of the variable N utilizing the big-O notation. Also, suppose that statements represented by the ellipsis need four chief memory accesses wi

Transmitting message and tentative checkpoint

Is node P allowed to transmit the messages related to application (as opposed to message which is part of checkpoint algorithm itself) immediately after having taken a tenta


Write a Review

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