Create a Shipment class.
Class must have private variables and public methods.
Create both a no parameter constructor and an all parameter constructor.
Create get and set methods for all variables.
Create a toString method.
Create a shipRate method . Do not store rate as an instance variable. It is passed nothing and returns a double which is calculated each time the method is called.
Create methods in Shipment to check for max weight, max volume, and max rate and return a Boolean true if they are exceeded.
Create a compareTo method based on shipmentId so Shipments can be sorted in an array or ArrayList. You will need to implement Comparable on the class header.
In all methods other than sets and gets, use your get and set methods to access shipmentWeight and shipmentCube.
Implement ShipmentConstantsInterface on the Shipment object class header.
Part B: ShipmentObjectProcessor
Description: Shipment rate calculator file loop.
Create a file named [url removed, login to view] with Notepad with one shipment per line and fields separated by commas.
Read multiple shipments from a file until shipmentId of "END" is found:
Process all Shipments by storing the data elements in an instance of Shipment as the data is read from a file.
Process all Shipments using the methods in the Shipment object such as the set methods, to calculate rate, and check for exceeding maximums. Do display errors as they are read and do not store those shipments
Do not display each individual shipment as they are being read.
Create an ArrayList<Shipment> and store all shipment objects in it.
At end of the loop, sort the ArrayList and print each Shipment using an enhanced for loop and the toString method.
Calculate and store the count of shipments processed and the total calculated rate.
9 freelancer menawar pada rata-rata $109 untuk pekerjaan ini
Hi I'm ready for this project. I'm expert in C, C++, Java & .NET development, also algorithms, Web, Mobile, Desktop applications. Please give me more detail. I will do it perfectly. Best Regards VnNorthStar
Hello, I am interested in providing you the solution of your Java project, consisting the concept of Multiple class with method overloading and accessor methods for accessing the data of class.