Question: (Java language) Do linked list by hand CS 2401 Assignment #4 Due Date: Friday, October 06, 11:59PM (See the syllabus for late policy) Objective: The

 (Java language) Do linked list by hand CS 2401 Assignment #4
Due Date: Friday, October 06, 11:59PM (See the syllabus for late policy)
(Java language)
Do linked list by hand

CS 2401 Assignment #4 Due Date: Friday, October 06, 11:59PM (See the syllabus for late policy) Objective: The goal of this assignment is to practice linked list of objects. Background: El Paso Packaging and Supply Co. comes back to you. They need your help to convert the array-based packaging to a linked-list based packaging. Additionally. the client would like to change the name of the class Package to Box. From Lab Assignment 3. you know that a sample file may look like the following one. 20 10 8 4.5 8.45 12.2 8.0 2.5 4.0 1.0 15.0 18.0 3.5 3.5 3.5 6.0 5.0 10.0 Each line contains the width, height and length of a box. The dimensions are separated by spaces. In Lab Assignment 3, you could read the input file twice. For Lab assignment 4 you can read the input file exactly once. Yes, sometimes clients can be very difficult.& The client is NOT allowing the use of any array to store Box objects, or java.util lists for this revised software. Assignment: You need to write a program using object oriented programming idea for boxes. That is, each box has to be considered an object. To achieve this, you must write a class named Box. As you already know, this client likes to keep each class in a separate Java file. Therefore, make sure to create a Java file for the Box class. Some other required properties of the Box class are as follows. 1. You are allowed to keep only one of the status variables public. The rest of the status variables of the Box class must be private. 2. Write no more than two constructors. 3. The Box class must have a public method named getVolume () that will return the volume of the box. 4. The Box class must have a public method named isCube() that will return true if the box is cubic, false otherwise. 5. The Box class must NOT contain any main method. Feel free to write any additional method in the Box class, as you see fit. The program file (the Java file that contains the main method) must be written in Runner.java. Runner must have the following functionalities. Each functionality must be implemented in a separate method in Runner

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!