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

  What is the output of the given program

What is the output of the following program

  How to declare and use single dimension arrays

How do you declare and use single dimension arrays? How do you perform basic sort and search routines on arrays?

  To reverse the order of elements on a stack

Write a program in C++ to  reverse the order of elements on a stack S using two additional stacks using one additional stack

  Imagine a tollbooth with a class called toll booth

Imagine a tollbooth with a class called toll booth. The two data items are of type unsigned int to hold the total number of cars, and a type double to hold the total amount of money collected. A constructor initializes both these to 0. A member funct..

  Write a program that computes the sum of all the odd numbers

Write a program that computes the sum of all the odd numbers between 1 and 99. Write a program that loads a word into register $8.

  Pairs of jeans to the cost of the jeans

Look at the table that reprecents the local store (1 pair or jean $24 ,2 pair of jean $48 , 3 pair of jean $72 ) for each row in the table , find the ratio of the number of pairs of jeans to the cost of the jeans.

  Program to compute gross wages for employee using array

Write program which uses the following arrays: payRate: array of seven floats to hold each employee's hourly pay rate. wages: array of seven floats to hold each employee's gross wages.

  Code to implement a staque

Write a C++ code to implement a Staque. Since the data structure is all about inserting and deleting numbers, it would be a good option to use a linked list to implement Staque.

  What problem arises as the lengths of the time slices

What problem arises as the lengths of the time slices in a multiprogramming system are made shorter and shorter?

  Write a recursive function

Write a recursive function, vowels, that returns the number of vowels in a string and write the definitions of the functions to overload the operators defined in parts a to c.

  Effect on the monthly contribution margin

Although the Missouri Company has the capacity to produce 16,000 units per month, current plans call for monthly production and sales of only 10,000 units at $15 each. Costs per unit are as follows:

  What will be the contents of the list after the function

The following c function takes a singly linked list of integers as a parameter and rearranges the elements of the list the function is called with the list containing the integers 1,2,3,4,5,6,7 in the given order what will be the contents of the list..

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