Create a class named order that performs order processing

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

C++ Object Oriented Programming Assignment

Create a class named Order that performs order processing of a single item. The class has the following five fields:

  • Customer name
  • Customer number
  • Quantity ordered
  • Unit price
  • Total price

Include set and get methods for each field except the total price field. The set methods prompt the user for values for each field. This class also needs a method to compute the total price (quantity times unit price) and a method to display the field values.

Create a subclass named ShippedOrder that overrides computePrice() by adding a shipping and handling charge of $4.00. Write an application named UseOrder that instantiates an object of each of these classes. Prompt the user for data for the Order object, and display the results, then prompt the user for data for the ShippedOrder object, and display the results.

Reference no: EM131411186

Questions Cloud

Aha''s statement on standards of professional conduct : Do these points seem self evident? Are there sections that surprise or illuminate concerning the task of the historian?
Explain definition and discussion of the related currencies : Explain A definition and discussion of the Related Currencies. Summarize your topic for the class, add a Biblical example, and offer further analysis for discussion on your topic.
Manifest destiny-sea to shining sea : Pick two themes from list  and describe thoroughly the history associated with the themes in your forum initial post-(Remember- every topic  listed in each theme is required to be discussed in your post..so if you pick themes 2 and 10 then your po..
Compute the conservative margin of error for the poll : Compute the conservative margin of error for this poll based on those likely to vote, and compare it to the precise margin of error presented.
Create a class named order that performs order processing : Create a class named Order that performs order processing of a single item. Create a subclass named ShippedOrder that overrides computePrice() by adding a shipping and handling charge of $4.00
How culture influences working styles : How culture influences working styles and different management styles and the importance of training managers to become inter-culturally competent
Where any labor or eeoc laws broken : Tasha was using the computer inappropriately . Tasha was using yahoo instant messenger and watching TV shows, during work hours. Tasha was called into the Managers office to be addressed, and owned up and was told there was nothing to sign right..
Would margin of error accompanying result be larger : The article also reported that "among GOP voters, 39 percent give Feinstein high marks." Would the margin of error accompanying this result be larger, smaller, or the same as the margin of error for the entire sample? Explain.
Write a paper about successful strategic alliances of amazon : Write a paper about Successful and unsuccessful strategic alliances of Amazon. Conduct internal analysis based on chapter 3 topics. Conduct external analysis based on chapter 2 topics. Describe 3 main strategies the company follows.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Consider the following class denition this class is

consider the following class denition. this class is considered to be in an inconsistent state if the isconsistent

  What are the values of sum1 and sum2

If the operands in the expressions are evaluated right to left?

  Consider the following nested loop construct

Consider the following nested loop construct. Categorize its efficiency in terms of the variable n using big-O notation. Suppose the statements represented by the ellipsis require four main memory accesses (each requiring one microsecond) and two dis..

  Develop gui layout

You are also required to develop your GUI layout that is similar to the screenshot below. You are not expected to have the locations and size of each control correct to the last pixel, however the relative position of the controls is to be maintai..

  An analysis model for the mail order company

An analysis model for the mail order company - UML class diagrams and UML sequence diagrams may be prepared using any of the tools listed on the course Library page or with other drawing tools.

  Structure plan in matlab

Tic-Tac-Toe (a.k.a. Noughts and crosses) is a game played by two players (‘X' and ‘O') on a 3x3 grid. In MATLAB, use a 3x3 cell array to hold the board information. Take it in turns to play the game, inserting ‘X's and ‘O's at various spots. Imple..

  Program that will read in the number of two point baskets

Write a program that will read in the number of two point baskets and the number of three point baskets a player makes.

  Write a simple menu-driven transaction system

You are to write a simple menu-driven transaction system for a hospital patient record-keeping application. A hospital has a number of types of patients, such as outpatients, emergency room, and inpatients. Each patient may be either male or femal..

  What does the term polymorphism mean

What does the term polymorphism mean and Use case models use two patterns - "Common Sub Behavior" and "Interrupts as Extensions." Explain these two patterns in your own terms and give an example for each pattern.

  Create program that uses functions and reference parameters

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

  Create constructor function which takes no inputs

You must have the constructor function which takes no inputs and randomly generates the 5 letter string for name and random integers from 20 to 40 for both age and class size.

  What is the effective access time for memory

Let the page fault service time be 10 millisecond(ms) in a computer with average memory access time being 20 nanosecond(ns). If one page fault is generated for every 106 memory accesses, what is the effective access time for memory?

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