Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Google Analytics 4 The Data Driven Marketing Revolution

Authors: Galen Poll

2024th Edition

B0CRK92F5F, 979-8873956234

More Books

Students also viewed these Databases questions

Question

Briefly describe the three stages of neuron development.

Answered: 1 week ago

Question

How to reverse a Armstrong number by using double linked list ?

Answered: 1 week ago

Question

5. Describe the visual representations, or models, of communication

Answered: 1 week ago