Create an object oriented solution customer to purchase

Assignment Help C/C++ Programming
Reference no: EM13772001

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

Problem: 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: EM13772001

Questions Cloud

Write an essay on red bull involved in intellectual property : Write a one thousand words essay on Red Bull Involved in Intellectual Property Dispute.
How does mr nader feel about osha and their mission : How does Mr. Nader feel about OSHA and their Mission? Are they succeeding? What do you think workplace safety would be like without OSHA
Explain drug testing and e-mail privacy : Employee monitoring practices are often implemented without an employee's consent or awareness. Then examine the following four areas of workplace privacy according to the guidelines listed below: Drug testing, E-mail privacy, Telephone conversation ..
Comparisons of fire prevention programs : Unless otherwise indicated, there is a 400 word minimum response required. Credible reference materials, including your course textbook(s), may be used to complete the assessment.
Create an object oriented solution customer to purchase : 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 amoun..
Write a summary of how to curb binge drinking at us colleges : Write a summary How to Curb Binge Drinking at U.S. Colleges: Sell Alcohol on Campus By Naomi Shavin.
Compose a description of the decision-making process : Compose a description of the decision-making process, including the steps on how to approach the situations, a list of questions if a meeting is granted, or a list of possible reasons for rejecting the meeting
What is the yield to maturity of the bond : Assume the market price of a 5-year bond for Margaret Inc. is $900, and it has a par value of $1,000. The bond has an annual interest rate of 6 percent that is paid semi-annually. What is the yield to maturity of the bond?
Compute the bond expected rate of return : Compute the bond's expected rate of return? Determine the value of the bond to you, given your required rate of return.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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