Question: with java please and read the guidlines at the end thank you A car manueacture woculd ik to is implement its invertary of vehicles as

with java please and read the guidlines at the end thank you  with java please and read the guidlines at the end thank
you A car manueacture woculd ik to is implement its invertary of

A car manueacture woculd ik to is implement its invertary of vehicles as a doubly linked ast caled Wehicielist. 1. Wrice a class caled Vehicle to hold the following indomation about a vhicke: - vid ias a Stringi w Vehiche if. This id is unique, No two vehices tave the same vid - year fas int yo the year the velicie was marulachred - prike (as double N the utandawd prios of the wericle Vehice should have construchors and methocs Gowtters, ketfers, and fostringl to manage the above infomion askill as the lik to the neat and prex (ormigus) vehicles in the lat. 2. Write the VehicleList class to hold obiects of the class Vericle. This class should define the following - Two instance variakles fint and last to keep the reterence of the liat and last vehichs of the int. - An instance variable cours that shores the sime of the ist. 1n should be updased whenever a new vehicle is adged to the lhat or an exiving vericle is removed. Vehiciolist shoud impiement the following irterface: public intertace NehieleIf I Pablie boolean ioEmty id i publie vehiele getvehieleat (iet inden) t phretarat the Vohicis object at the opeeified index publie int indexotiat vid) : fike un wid al wen an in jatientec 11 if un object in publie vold setVehiolext (ant inden, Vesiele v) a If inose with information of the Yohicje cobtert v giver 1) ai a parumer. public void addrirst \{Vehic1e vi ; pibile volid addLae (Vehiele v) ? Th tian beid adinte at the end of the 13n publie void addat [int index, Wehiele v]. publie atring removedt (int index). Phile Arrayliaccvehiele> cearebyear fist year) a framutacturted th the apecified your public Vebiete[1 marehModed [string modet]; pubtic string tostring 3 ; ff implement a cottringi\} methos that printe the afot in the if torost: Il theont: the_nife of the liat If webleles detalis {1.n the sane 11se) If realete2 detalls 16 178 3. Write a TestVehicleList class to test the VehicleList class. This class should have a main method in which you perform the following actions: - Create a Vehicietist object - Insert 3 Yehicles at the endiof the created list. - Insert 3 Vehicles at the front of the list. - Insert 3 Vehicles at the following oositions of the list respectively 0. 1.5 - Print the content of your list - Find out in the list the vehicies with the same model as the first vehicle on the list. Print them out. - Remove the first element of the list - Remove the item at index 2 - Print the content of your list again, - Print out the vehicles manufactured in 2022. For each operation above, print a small message that describes the operation you are doing. For example: Submission Guidelines - This is a groap assignment of 3 students per group (one student is the group's leader). - Make sure your Vehiclelist class implements the interface as specified, i.c., your class should begin with public olass Vehicletist implenents Vohicletr. - Submit your Netbeans project file (with rip extension) that contains the three java classes: Vehicle.java, Vehiclelist.java, and TestVebicleList.java, and the Java interface, which should be in a package called. assignticati Your subminted file should be: 1D_assignment sip (ID ot group leader) - Put your IDs and names at the top of the above java files. I will lest your code, so make sure your code runs correctly, - Submit a word document ID assigmment ldect that contains a screenshot of the execution of your program. Put your IDs and names at the top of the file. (-2 points if names are missing)

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!