It is the year 2269 and Quantum Space Systems Inc. is in the process of designing its Q-2.56 single use Quantum Space Transportation Systems (QSTS). You have been tasked with creating a class to model a single QSTS functionality.
Design a class named QSTS (Space Transportation System) that contains:
A private int data field named QSTSId for the QSTS registration ID.
A private Date data field named dateCreated that stores the date when the QSTS was created.
A private double data field named emptyMass in pounds (default to 613,100) which represents the mass of the QSTS before fueling.
A private double data field named fuelMass in pounds (default to 3,785,000) which represents the mass of the fuel needed by the QSTS.
A private double data field named payloadMass in pounds (default to 0) which represents the mass of the QSTS payload.
A private double data field named totalMass which represents the mass of the QSTS after it has been assembled in the launchpad fully fueled (emptyMass + fuelMass + payloadMass).
A private String data field named manufacturer that stores the name of the company that built the QSTS (default “Quantum Space Systems Inc.”). Assume all QSTSs have the same manufacturer.
A private int data field flightTime in seconds (default to 0).
A no-arg constructor that creates a default QSTS and initializes the QSTSId with a 6-digit random integer and the date when the QSTS was created.
A two-argument constructor that creates an QSTS with a specific initial fuel mass and payload mass (constructor arguments) and also initializes the QSTSId with a 6-digit random integer and the date when the QSTS was created.
The accessor (get) and mutator (set) methods for manufacturer, fuelMass and payloadMass
The accessor (no mutator) methods for flightTime,emptyMass, totalMass, QSTSId and dateCreated.
A method named increseFlightTime() that increases the flight time by 5 seconds. The QSTS burns through 1% of its fuel for every second of flight (up to the original fuelMass).
A method named deployPayload() that deploys the payload in space (mass will be affected). The QSTS takes 200 seconds to get to space. It cannot deploy its payload before that. Show error message if this method is called before the QSTS gets to space.
*Provide appropriate input validation for these methods. Print a message to the console if the arguments passed to the method do not pass the validation test(s).
Write a test program (class TestQSTS) that creates an QSTS object and tests every method of the class. (use console output).
Files (QSTS.java and TestQSTS.java)
Welcome to one of the best assignments to help companies online .
· Do you want to order for a customized assignment help task?
· Click on the order now button
· Set up your topic, Fix the number of pages, Fix your Order instructions
· Set up your deadline, upload the necessary files required to complete the task, Complete the payment.
We delivery high quality and non plagiarized tasks within the stipulated time given