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

  Display the result of dividing "y" by 0

It is also attatched in a word file too. This set of directions in Project 3-7 script produces some kind of expected output by creating this script called

  Design a simple network monitoring system

In this assignment, you are going to design a simple network monitoring system that is suitable for a small business.

  Network administration processes evaluation

Network Administration Processes Evaluation

  List and describe three improvements

List and describe three improvements that have been made to Active Directory in the Windows Server implementation. What one other improvement would you suggest that is not part of Active Directory at this time?With one reference please

  What is the difference between zero copy

What is the difference between zero copy forwarding and kernel bypassing?

  Importance of effective change leadership in relation

the importance of effective change leadership in relation to an organization's adoption of social media initiatives

  How the police department will able to trace the criminals

Does firewall can protect the phishing mails to get entered into the secured environment or the local environment?

  Explain white-box testing strategy in software engineering

Explain white-box testing strategy in software engineering. Why it is given this name? Explain the advantages and disadvantages of white-box testing strategy?

  Number of calls being transmitted by telephone trunk

A simple telephone system consists of two end offices and a single toll office to which each end office is connected by a 1-MHz full-duplex trunk.

  Horizontal force p required to lift the 200-kg crate

The coefficient of static friction at all contacting surfaces is µs = 0.3 . Neglect the mass of the wedge.

  Quantity of cars produced

1) The correlation coefficient (r) calculated between the quantity of cars produced (Q) and the cost per unit (ATC) is -0.11. Based solely on this information, what can you conclude about the relationship between Q and ATC. Explain in 1-2 sentence..

  How many threads will you create to perform the input

How many threads will you create to perform the input and output and how many threads will you create for the CPU-intensive portion of the application

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