☑Kizspy.me
SPRING 2025
Duration: 85 minutes
ID
Name
1
Honda CBR500R
Model Number
CBR500R-2024
Engine Capacity (cc)
500
2
Yamaha YZF-R3
YZF-R3-2023
321
3
Kawasaki Ninja 650
Ninja650-2024
649
4
Suzuki GSX-R750
GSX-R750-2023
750
5
KTM Duke 390
Duke390-2024
373
6
Ducati Panigale V4
Panigale V4-2024
1103
7
BMW S1000RR
S1000RR-2023
999
8
Harley-Davidson Iron 883
Iron883-2024
883
9
TripleRS-2023
765
10
648
Triumph Street Triple RS
Royal Enfield Interceptor 650 Interceptor650-2024
Q1. Write a PE SP25_Q1 class (PE_SP25_Q1.java) utilizing singly linked list to
manage the data as described in the above table. The singly linked list includes:
1. [0.5 points] Motorbike class to encapsulate Motorbike ID (id - integer), Motorbike
name (name-string), Motorbike model (model-string), Motorbike engine capacity
(enCap - integer).
2. [1 point] addFirst and removeLast methods to add the new node to head of the list,
and to remove the tail of the list, respectively.
3. [0.5 points] Write a main function to test your implementation.
Q2. Write a PE SP25_Q2 class (PE_SP25_Q2.java) which includes:
1 1 nointel Motorbike class which is used to enconsulate the following information
+100%
Zoom
Close