Create a class named order that performs order processing

Assignment Help Programming Languages
Reference no: EM131310349

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

Questions Cloud

Implementations of a priority queue : Your assignment is to write and compare two implementations of a priority queue whose highest priority element is the one with the smallest key value. The elements have the following declarations:
Prove that des cipher satisfies the complementation property : Let k be the encipherment key for a Caesar cipher. The decipherment key differs; it is 26 - k. One of the characteristics of a public key system is that the encipherment and decipherment keys are different. Why then is the Caesar cipher a classica..
Describe bottoms adventure with titania : Describe Walter Lee's conflict and general state of mind throughout most of the play.Describe the value system that prevailed in Helmer's household. What demand did Nora ultimately make?
How performance cycle variance can be controlled : Discuss uncertainty as it relates to the overall logistical performance cycle. Discuss and illustrate how performance cycle variance can be controlled.
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.
Differences between transactional and relationship marketing : Explain the differences between transactional and relationship marketing. How do these differences lead to increasing emphasis on logistical performance in supply chain management?
Produce new file which contains the first and second fields : From the file download as above, produce a new file which contains the first and second fields, plus the fourth to the sixth fields. So, the files contains the following: Note that fields 1 and 2 are on the left and followed by the fields 4, 5 and ..
Will the firm need external funds : Using the percent of sales method, forecast the new balance sheet for sales of $600,000 assuming that cash changes with sales and that the firm is not operating at capacity. Will the firm need external; funds?
How can a company attempt to eliminate the knowledge gap : Which of the gaps in Figure do you think represents the major problem for most firms? How can a company attempt to eliminate the knowledge gap? The communications gap?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a program that will generate a data file

Write a program that will generate a data file containing 100 value points (Y(t)) from a damped sine function. Make use of the math library functions for the exponent and sine calculations.

  Write a regular expression for the given problem

You need to prepare a regular expression of the problem - The set of strings over alphabet {a, b, c} containing at least one a and at least one b.

  Write function which takes string and returns vowels

Write a function which takes as a parameter an string and returns vowels (a, e, i, o, u). The function prototype should look like:

  Design application to declare an array

Design an application that declares an array of 10 HousePlants. Prompt the user user for data for each of the HousePlants, then display all the values.

  Explaining the situation in program

Which of the following best explains the situation after Line 1 has been executed?

  Estimate the storage space for telephone book

Estimate the storage space (number of bytes) required for each of the following items: A telephone book with 10,000 entries consisting of names, addresses and phone numbers. Use your phone book to estimate the average length of an entry.

  Write shell script to read from keyboard-display on monitor

Write shell script called poject.21 to read from keyboard and display on monitor first name, last name and age if the age is less than 50.

  Write program to display companys payroll report in list box

Write down the program to display companys payroll report in list box. Program must read each employee's name, hourly rate, and hours worked from file and produce report.

  Write program to read integers and finds largest of them

Write a program that reads integer, finds the largest of them, and counts its occurrences. Assume thant the input ends with number 0. suppose that you entered 3 5 3 5 5 5 0.

  How many school districts are there in your sample

How many school districts are there in your sample? How many schools are there in the district with the largest number of schools? How many schools are there in the district with the smallest number of schools?

  Develop an interactive e-learning tool in english language

Write a simple description about the program H. Design and display the screenshot of each form and label the different objects - develop an interactive e-learning tool in English language learning for kids

  Create an application in which a user can enter a phone book

Create an application in which a user can enter a phone book entry, including the following elements

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