· This assignment is to be undertaken as an individual assignment
· This assignment is graded upon 15 marks and counts for 15% of your Overall Marks for this course
· The assignment is due on Wednesday October 24, 2018, by 1200hrs (noon)
· The assignment must be submitted electronically via Ed > Assessments. Please read the submission requirements for each question carefully.
· Test cases might be used to do a first-round marking of your code. You should try to run your program on Ed to check if they pass the test cases. Test run your code as early as possible because you might need to make changes to your code.
· Please use the Ed discussion forum to discuss any issues related to this assignment.
· The readability of your code is one of the marking criteria. You should take care of your coding style and include comments in your code (wherever appropriate) to help explain it
If you have any questions about interpreting the assignment and its requirements, please make use of the LICs consultation sessions. To avoid confusion and misunderstanding, we will not be answering assignment-related questions over email.
A rental company has a fleet of vehicles. At the end of the vehicle’s life, the company will take out the log book and input the following data into their system:
· Name
· Registration
· Colour
· Number of Trips
· Odometer readings of each trip
Design a Car class which contains the appropriate attributes to store all of the information, you must create the appropriate getter, setter and constructor methods
· A TestCar class is provided for you on Ed. This class is responsible for prompting the user for input and displaying the output as specified below
§ Once all the required information is gathered, the test class should print out the name,
registration and colour, as per the sample outputs below
§ It should also print out the longest, shortest and average distance between odometer readings (round the average to 2 decimal places)
· All odometer readings will be positive values and each value will be greater than or equal to the previous
· Odometer reading 0 represents the car’s initial odometer reading
· Please submit a Car.java and a TestCar.java
Sample (OUTPUTS in red, INPUTS in green):
Input name: Red Racer Input registration: ABC123 Input colour: red Input trips: 3 Odometer reading 0: 0 Odometer reading 1: 100 Odometer reading 2: 200 Odometer reading 3: 300 Red Racer | ABC123 | red Longest distance travelled: 100 Shortest distance travelled: 100 Average distance travelled: 100Input name: Swift Squeaker Input registration: NBC374 Input colour: blue Input trips: 0 Odometer reading 0: 123 Swift Squeaker | NBC374 | blue Longest distance travelled: 0 Shortest distance travelled: 0 Average distance travelled: 0You have been asked by an Operating Systems developer to implement a basic File System. The following types of files will be stored in this file system:
· GenericFile with no format (file name, author)
· Word document (file name, author, pages, word count)
· Video (file name, author, duration in seconds, width, height)
Your File System is a bit quirky, the file size is calculated in the following way:
· GenericFile with no format = length of filename * length of author
· Word Document = length of author’s name * pages * word count
· Video = duration * width * height