Question: In this task, you will practice object-oriented programming. Your job is to implement a system for an online car trader to advertise their cars (similar

In this task, you will practice object-oriented programming. Your job is to implement a system for an online car trader to advertise their cars (similar to https://www.carsales.com.au/). Launch BlueJ (or Eclipse) and create a new project and name it Task2 and save it in the Task2 folder in your submission. Then, create the classes you are asked for in the following parts of the question. a. In the project file, create a class for a car (name it Car). Identify the required attributes for cars and the data type of each attribute. b. Provide comments in the Car class and briefly explain each attribute. c. Implement a default constructor and a constructor with parameters for class Car. d. Implement setter and getter methods for class Car. e. Provide comments for constructors, setter and getter methods using Javadoc. f. Provide a main method for the Car class and choose ten different cars from https://www.carsales.com.au/ and define three objects in the main method to store information about these three cars. For each object, you need to get a screenshot of the associated carsales page and include it in your document to show that you have correctly identified the attributes of the cars. g. Create a list and add all ten car objects to the list. h. Write a sortPrice method to sort the list of cars according to their prices. i. In the main method, call sortPrice method for the list of cars and print the sorted list. j. In the main method, read the customers budget (an integer) from the input and show the cars that are suitable for this customer (i.e., their prices are below the budget). **Please note that you need to submit the Java codes with a MS Word document (or a PDF file) which includes the annotated screenshots of the program to show each part is complete and tested. If you miss the Java code or the document, you will get no mark.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!