Java application for order management

Assignment Help Basic Computer Science
Reference no: EM131049534

A Small Manufacturing Company (SMC) uses a Java application for order management. The company accepts orders and credit orders from their clients. For an order, the client pays the order value in advance. For credit orders, the SMC credits the clients with the full dollar value of the order (in other words, the client should not pay in advance for the ordered products). For credit orders, the client and the SMC representatives negotiate the interest (as percentage of the order value) that will be paid by the client on top of the order dollar value, when the ordered items are delivered. The interest value should be between 8 and 25.

You are required to design, implement and test a Java application for order management consisting of three classes: Order, CreditOrder and TestOrders. These classes are specified below.

The class Order defines the instance variables orderId, clientName and orderValue. It defines a constructor with arguments, the method toString and and get/set type methods for the instance variables. The class CreditOrder inherits the class Order. This class defines the instance variable interest. It also defines a constructor with arguments, the get/set methods for the additional instance variable, and the specific methods toString and getCreditOrderTotalValue.

Additional methods for the classes Order and CreditOrder may be defined if necessary. The class TestOrders contains only the method main. Here, you should do the following:

1. Instantiate an Order object order1 and a CreditOrder object creditOrder1 by invoking the argument constructors. Use values of your own as argument values. Display to the console the string representation of the two objects by invoking the toString method.

2. Calculate and display the total income of the SMC as a result of delivering the two orders order1 and creditOrder1.

3. Instantiate a CreditOrder object creditOrder2 by invoking the argument constructor. This time, the argument values will be obtained by inviting the user to enter them one by one, from the console. Display the string representation of the object creditOrder2.

4. Check if the two orders creditOrder1 and creditOrder2 are issued by the same client. Display the clients of the two orders and an appropriate message depending on the test result.

5. Calculate and display which of the two orders order1 or creditOrder2 would generate the largest income for the SMC.

Reference no: EM131049534

Questions Cloud

Adoption of open-source software in the chapter : Refer to the Real World Case about the U.S. Department of Defense and its adoption of open-source software in the chapter.
Differences between isdn and idn : Explain the differences between ISDN and IDN. How is ISDN accessed? What is broadband ISDN? Compare and contrast the services used in B-ISDN.
Draw graph illustrating competitive markets hiring decision : Draw two side-by-side graphs representing the derived demand for this firms labor demand - Draw a graph illustrating the competitive markets hiring decision (two side-by-side graphs)
Write a script for a communication law and ethics class : Write a script for a communication law and ethics class. I need a word document script which explains the concepts in my Communication Law and Ethics Class.
Java application for order management : You are required to design, implement and test a Java application for order management consisting of three classes: Order, CreditOrder and TestOrders. These classes are specified below.
An operating system necessary : Why is an operating system necessary? That is, why can't an end user just load an application program into a computer and start computing?
Write a paper about environmental pollution : Write a paper about Environmental Pollution.
Pointing out the objectives of research : "A research scholar has to work as a judge and derive the truth and not as a pleader who is only eager to prove his case in favour of his plaintiff." Discuss the statement pointing out the objectives of research.
Second time merge the result of step : What is the complexity (In terms of k and n) of merging k number of arrays each of size n using the merge algorithm. First time, merge array1 and array2, second time merge the result of step 1 with the third array, and so on.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write a phone book program

When phone book enties are displayed all data members will be displayed. Create a friend function that overloads the

  Compare the running time of this modification

Compare the running time of this modification with that of the original algorithm on sequences that are nearly sorted or reverse sorted, and on sequences with many identical elements. What do you observe?

  Incorporating cia triads into company cyber security

Describe in detail an organization you are familiar with that is need of a security review. This could be a company you work for, a fictitious company, or an organization you are associated with. You will use this company and scenario throughout t..

  Charts and conditional formatting

Explain what you believe to be the main business purpose of charts in Excel. Next, discuss whether or not you believe Excel would still be a useful tool if the charting features were removed from the application. Justify your response.

  Smallest exponent that can be stored using this 16 bit stand

storing number in a string of 16 bits, the first bit is used for the sign of the number, and the next 5 bits store the exponent plus the bias, and the remaining 10 bits store the mantissa.  The bias is 15. What is the smallest exponent that can be st..

  Write a recursive method

public static boolean isSorted(List l) Write a recursive method that returns true if a linked list is sorted (nondecreasing) order and returns false otherwise. An empty list is considered to be sorted.

  Description of the device

The presentation should include a discussion of 3-5 device alternatives.  Included in the presentation should be a description of the device, including the manufacturer, the model, the seller, the cost, and a summary of the manufacturer specificat..

  Prompt the user for the length and width of a lawn

Prompt the user for the length and width of a lawn

  Analysis of competitive organization and possible threats

Analysis of competitive organization and possible threats and how organization is using E-Business Management facilities for daily activities? Limitations if any, adding more features for E-Business if required.

  Color triangle for matching stimuli of wavelengths

1. The following is the color triangle for matching stimuli of wavelengths 700, 546.1 and 435.8nm showing the locus of spectral colors. Assume a color in the blue-green range has the coordinates of r = -.50, g = +.75 (the dot in the diagram below)

  Probability of occurrence of four pairs in original sequce

What is the probability of occurrence of each of the four pairs in original sequence? Illustrate your work. What is the probability of occurrence of 0 and 1 in modified sequence?

  Design hardware-software driver processor-peripheral device

Design the hardware and software driver that will implement a byte-wide data transfer from your processor to a peripheral device.

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