Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please make it using java code, include screenshots show each method clear. Exercise #2 Answer the following Question: 1. Given the following class public class

please make it using java code, include screenshots show each method clear.
image text in transcribed
image text in transcribed
Exercise #2 Answer the following Question: 1. Given the following class public class Double Node { private Object info-null; private DoubleNode next null; private DoubleNode back-null; 2. Complete the class DoubleNode by adding the necessary methods 3. Create a class my Doublelinkedlist similar to myLinkedlist (created in the lecture). This class should have at least the following methods werAtEronto, remescatEronto, print and printReverso 4. Write a method that create a linked list from a double linked list using the methods available in my Doublelinkedlist and java.util.Linkedilist 5. Create a class named "Car" which has the following fields. The fields correspond to the columns in the text file except the last one. 12 1 Vehicle Name String in Engine Number String 11 Vehicle Price double IV. Profit double V Total Price double (Total Price - Vehicle Price + Vehicle Price Profit/100) b) In Test class, write a method named shew Car (my Doublelinkedlist list, String Number) takes the list and Engine Number as parameters, and displays all the information of the particular car including Total Price In Tastelare urite the main mathod in Testlaeta 2. Complete the class DoubleNode by adding the necessary methods 3. Create a class by Doublelinkedlist similar to pixlankedList (created in the lecture) This class should have at least the following methods inserAteronto, removeAirconto, print, and printReyece 4. Write a method that create a linked list from a double linked list using the methods available in my DoublelinkedList and ava.util.Linkedilist 5. Create a class named "Car" which has the following fields. The fields correspond to the columns in the text file except the last one. 12 11 i Vehicle Name String il Engine Number String Vehicle Price double iv. Profit double V. Total Price double (Total Price Vehicle Price + Vehicle Price Profit/100) b) In Test class, write a method named showCar (myDoublelinkedlist list, String Number) takes the list and Engine Number as parameters, and displays all the information of the particular car including Total Price c) In Test class, write the main method (in Test class) to: 1. Create mx Doublelinkedlist list 2. Read the content of the text file and for each row an instance of the class Car is created with the calculated Total Price (use MxDoubly linkedlist of objects) and add each instance list (in b.1) 3. Test the method showCarb 4. Test the methods written in my Double Linkedlist

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

Excel As Your Database

Authors: Paul Cornell

1st Edition

1590597516, 978-1590597514

More Books

Students also viewed these Databases questions