Create subclass name shippedorder that override computeprice

Assignment Help Programming Languages
Reference no: EM131336731

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

Questions Cloud

A line of credit and a revolving credit agreement : Explain the differences between a line of credit and a revolving credit agreement.- What are some of the disadvantages of relying too heavily on commercial paper as a source of short-term credit?
Discuss about the case given below : The research proposal is a composite of all of the previous assignments. An example of the specific format is attached. This is the first big step on road to writing your creative research project. This formal proposal will focus your research an..
Define the accrued expenses and prime rate : Under what condition or conditions is trade credit not a "cost-free" source of funds to the firm?- Define the Accrued expenses, Deferred income and  Prime rate.
What is the ratio of the horizontal force exerted on stop : In each of the gates shown, the top of the gate is supported by a frictionless hinge. Each has a rectangular overhang that sticks out or in a distance a from the gate (a is small relative to the depth h).
Create subclass name shippedorder that override computeprice : 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.
Oligospermia due to efferent duct obstruction : For the statement "oligospermia due to efferent duct obstruction" the main term to reference in the Index is __________
Spontaneous and negotiated sources of short term credit : How is the annual financing cost for a short-term financing source calculated? How does the annual financing cost differ from the true annual percentage rate?
Rules or properties of exponents : For this discussion board, you will each take the role of teacher. You will each choose ONE of the following rules or properties of exponents and teach it to the class (i.e., explain it in your own words and give an example that illustrates your e..
Write a program which displays four options to the user : Write a program which displays 4 options to the user and asks the user to enter one option and displays the output depending on the choice.

Reviews

Write a Review

Programming Languages Questions & Answers

  Evaluate the fibonacci series

Write a program to evaluate the first 20 numbers of Fibonacci series.

  Simulate the recursive factorial function given in the class

In this programming assignment, you are asked to simulate the recursive factorial function given in the class. Your program is to be a nonrecursive version of the factorial function implemented using a stack.

  Based on the kercher 2009 article how can management tools

q1. based on the kercher 2009 article how can management tools for microsoft windows server 2008 automate user account

  Write program that lets user enter charge account number

Write a program that lets the user enter a charge account number. The program should determine if the number is valid by checking for it in the following list.

  The related set of networked computers

In networking, the related set of networked computers (i.e. sites ending in .edu, .com, .gov, etc.)

  Program to print percentage of correct answers

Program should print out percentage of correct answers of each students. At end of exam, program print percentage of students which passed exam.

  Program to execute on cse unix environment

Your program should be written in C++, execute correctly on CSE unix environment, and compile using g++ compiler using makefile.

  Write program to prints formatted table of windchill values

Write a program which prints nicely formatted table of windchill values. Rows must represent wind speed for 0 to 50 in 5 mph increments.

  Write a program to help a local stock trading company

Write a program to help a local stock trading company automate its systems. The company invests only in the stock market. At the end of each trading day, the company would like to generate and post the listing of its stocks so that investors can s..

  Creating a program that writes to a data file

Creating a program that writes to a data file called Celtofarendfile.txt using the end of file structure. The program should create a conversion table of Celsius to Fahrenheit from 0 to 100 Celsius in increments of 5.

  Problem analysis chart - flowchart

One of your smaller customers' needs your help writing a program. Your customer has an e-commerce Web site but wants to avoid being sued for allowing children to make purchases without the authorization of their parents

  Creating a software package for amazon

Suppose you are creating a software package for Amazon.com that needs users to enter their own passwords. Your software requires that users' passwords meet the following criteria:The password should be at least six characters long.

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