Contact Us
Projects | Assignments
sellfycode@gmail.com
More
Get Homework Help
English
Español
Português
Français
Deutsch
Italiano
Русский
close
Contact Us
Projects | Assignments
sellfycode@gmail.com
Starting from:
$30
Add to cart
CSC20- Lab 04 Solved
Objective:
This lab's objective is to gain experience in using object references to do linking.
The lab assignment:
In this lab you are to implement a sorted list with the doubly linked technique. You are required to use the following DLNode class.
public class DLNode {
double data;
DLNode Prev= null, Next=null;
}
1. Download instructor’s SortedList.java, DLNode.class and lab04.class.
2. Complete program SortedList.java by implementing the following methods.
a. insert(double n) – Insert double precision number n into the sorted list.
b. listAscending() – List all numbers of the list in ascending order.
c. listDescending() – List all numbers of the list in descending order.
3. Compile SortedList.java and run lab04.class.
4. Try the instructor’s sample program lab04.class in directory ~wang/sample20/lab04 for sample output.
Starting from:
$30
Add to cart
1 file (137.9KB)
More products
CPSC335- Project 1: implementing algorithms Solved
$35
Add to cart
CSE571- Artificial Intelligence: Neural Network for Collision Prediction Solved
$60
Add to cart
GHC22- Exercise 1: Obstacle Avoidance Solved
$25
Add to cart