Use the first set of information to create an online order

Assignment Help Basic Computer Science
Reference no: EM13208355

Create a class named Order that performs order processing of a single item. The class has three fields: customer, item, and quantity ordered. Include set and get methods for each field. This class also needs methods to compute the total price (quantity * unit price) and to display the fields. For credit customers, ensure they are within the limit before allowing them to place an order. Create a subclass OnlineOrder that overrides computePrice() by adding a shipping and handling charge $4.00. Write a program that uses these classes. Create a child class InstoreOrder that has an instance variablestoreLocation. Save the programs as Order.java, InstoreOrder.java, OnlineOrder.java. Create a class UseHandlingShipping.java which will create one instore order and one online order. USe menu to ask gather customer information and order details. Use the first set of information to create an Online order and the second one for creating an instore order. After the orders are placed, print a report of the inventory reflecting the current items in the inventory. You will also need to create the inventory object with at least 3 items instock.

Reference no: EM13208355

Questions Cloud

Create an equally weighted portfolio : Create an equally weighted portfolio of five computer software stocks. Is such a portfolio a diversified portfolio? What is the beta of the portfolio? What is the expected return of the portfolio?
Natural environment of a bird in an artistic composition : If an artist wanted to emphasize the natural environment of a bird in an artistic composition, the use of which medium might be most appropriate?
Calculate the total of the scores by using while loop : Write a program to calculate the average of the class by following steps: 1. Ask user input how students in the class 2. Use random function to generate the score (between 0 and 100) for each student and calculate the total of the scores by using ..
What is the npv of project : The risk free rate is 4%, the market risk premium (the average difference between the return on the market and the risk-free rate) is 5%, and the wine project will be financed with $600,000 of debt. What is the NPV of this project?
Use the first set of information to create an online order : After the orders are placed, print a report of the inventory reflecting the current items in the inventory. You will also need to create the inventory object with at least 3 items instock.
Create an instance variable credit limit to indicate : Create another sub class CreditCustomer. Create an instance variable credit limit to indicate the maximum limit ($500). Credit customers get a markup of 2% on the order price.
What defense or defenses will big petroleum invoke : Current legislation limits the amount of economic-related liabilities to be paid by a company on account of an oil spill to $75 million.
Write an app that uses a foreach statement to sum the values : Write an app that uses a foreach statement to sum the values passed by the command line argument. Hint: Use static method ToDouble of class Convert to covert a string to a double value.
Use the smallest possible array to solve this problem : Use the smallest possible array to solve this problem. Display the complete set of unique value input after the user inputs each new value.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Video memory is needed to store picture as true color image

how much memory is required to store the picture? How much video memory is required to store the picture as a ''true color'' image, at 3 bytes per pixel?

  Apply yen''s algorithm to find the shortest path from node 1

Apply Yen's alogithm to find the shortest paqth from node 1 to all

  Different kinds of tasks which humans could perform by ai

Intelligence use AI to do different kinds of tasks which only humans could perform. Research Internet and explain how AI works to make bots resemble human intelligence.

  Develop an interface evaluation questionnaire

Develop an interface evaluation questionnaire that contains 20 generic questions that would apply to most interfaces.

  How procuring organization has sorted out problem

You are the engineer involved in development of financial system. Should you simply abandon work until procuring organization has sorted out problem?

  Explain vulnerability in the system

How would you respond if Goli came to you describing a vulnerability in your system and offering to help fix it--What would incline you to hire her? What would disincline you from doing so?

  Explaining statement for security policy

Write a statement for security policy for the following:Let LAN for small 100-person business, Pixel Inc. Business occupies one floor in office building. Everybody has a computer on his or her desk.

  Incorporate this method into an application

Incorporate this method into an application that inputs a series of pairs of integers (one pair at a time) and determines whether the second value in each pair is a multiple of the first

  Discuss whether you accept demand from manager

Discuss whether you should accept this demand from your manager or whether you should persuade your team to give their time to the organization rather than to their families. What factors might be significant in your decision?

  Generate an array of 20 random integers from 0 to 9

generate an array of 20 random integers from 0 to 9. Search for the first occurrence, if any, of the number 7, and report its position in the array.

  Dss inc. is an electronics company with production facility

DSS Inc. is an electronics company with production facilities located in Atlanta, Boston, and Chicago. Components produced at these facilities may be shipped to the firm's regional warehouses that are located in Edison and Fargo.

  Class polygon which draws a hexagon for a set of numbers

Write a class Polygon which draws a hexagon for a set of numbers given by the user. You must only use method drawLine of class Graphics (other fill or draw methods won't be accepted).

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