Question: please solve this question java 2 programming language thank you Question 1 [45 points): fmplement the class Car that has the following data fields. Note

please solve this question
java 2
programming language
thank you
please solve this question java 2 programming language thank you Question 1
[45 points): fmplement the class Car that has the following data fields.

Question 1 [45 points): fmplement the class Car that has the following data fields. Note that all data fields should be private model ex Honda years: 2017" Images contains image hames as a string in the below format) Ex: imagepe-image2.jpe-image.jpg Note: The impose separated by the token Asume that the value of the images duta bield is always valid counter to keep track of how many cat objects were created The case contains the following methods A constructor that creates a new Criven the model year, and rate, Images The other) and the match methods as shown in the UML diagram A getRate() method, that returns the role according to the year as follow Year 2010 Ral 155 Year 2010-2018 ate 205 Year 2018 rate: 30 The tostring method that returns a sering consisting of all the information of a Car Example - Car model: Stig year images Sing : . . Carmodet Styear in apes S get ModeString Yealint getimages (String getRatel double Counter Modelis. Sering void Year up String: void mapesa: Stringsod String String Page 2 of 3 Exam 1 Fall 2020-2021 CSC1300 Question 2 [30 points]: Wewdriver claw called Deer that Create an array that can bold scans 2 Heads from the use the information of car objects, creates the object, and to them the TRY 3. Displays the model of the third car in the way 4 Displays the number of objects created by calling the appropriate met 3Dplay in all as with less than 255 Question 1 (45 points]: Implement the class Car that has the following data fields. Note that all data fields should be private model (ex: "Honda") year (ex: "2017" images (contains image names as a string in the below format) Ex: image.jpg-image2.jpg-image3.jpg Notes: The images are separated by the token Assume that the value of the images data field is always valid counter to keep track of how many car objects were created. The class also contains the following methods A constructor that creates a new Car given the mode, year, and rate, images The getter accessor) and setter (mutator) methods as shown in the UML diagram A getRate() method, that returns the rate according to the year as follow Year 2010 Rate: 155 Year 2010-2018 rate: 205 Year 2018 rate: 305 The tostringi) method that returns a string consisting of all the information of a Car Example: Model Honda, Text 2027. tater 205. Images I- Car model: String images String . Carmodel: String. year int, images String) get Model String get Year int getimages String petkatel double EsCount set Modelin: Strings void setYear (p: String void setimages (a: String: void toString String Page 2 of 3 CSCI 300 Exam Fall 2020-2021 Question 2 [30 points) Write a driver class called CarDriver that 1. Creates an array that can hold Scars 2. Reads from the user the information of 5 car objects, creates the objects, and stores them in the array 3. Displays the model of the third car in the array 4. Displays the number of car objects created by calling the appropriate method in the class Car 5. Display information on all cars with rate less than 25

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!