Question: / / Description of implementation requirements for IntArrayList Before reading this document, read The List data type.docx ( or pdf ) as an overview Reading
Description of implementation requirements for IntArrayList Before reading this document, read The List data type.docx or pdf as an overview
Reading these two documents in depth may take you about one hour
public class IntArraylist a skeleton for this class is provided for students to start with
import java.util.; provided for use of Arrays methods
Fields for IntArrayList provided as part of the IAL Java skeleton
private int size; the number of elements in the IntArrayList
private intIn this part of Exam THREE you will fill in constructors and methods for an object class implementing a List data type.
There are five files associated with this hour, point part of Exam THREE; read them in this order estimated time: hour:
The List data type in both docx and pdf versions read this file first for an overview of what a List data type is all about.
Versions.java read this to understand the four possible versions that you can implement for Exam THREE Part B
Exam Three Part B detailed notes.txt read this for more details about how to fill in the next file, a java program
IntArrayList.java you will write code, pseudocode, and pre and postconditions for constructors and methods in this file.
This is a "skeleton" or template file for you to fill in similar to the Phone Numbers assignment java file.
TestIntArrayList.java this is a java client program that uses IntArrayList objects and tests your implementations
You may want to print some or all of these files to refer to while you are implementing IntArrayList. You should download IntArrayList.java and TestIntArrayList.java to your VM in IntelliJ's my java programssrc directory to implement IntArrayList and test your implementations
There are versions of IntArrayList you can Submit on Sakai, worth and points, respectively, so it is possible to earn extra credit. Version is the simplest, only implementing it will not gain all points. All Versions will be implemented in the single IntArrayList.java program. You will be provided definitions of all methods and constructors for all Versions that compile but do not pass any of the tests.
Note: completing a later IntArrayList Version or requires you to have successfully implemented and completed all previous versions.
If you implement more than Version of IntArrayList you must modify the TestIntArrayList.java program by changing a static variable VERSION at the top of the file to indicate which Version you have completed so all the appropriate tests will be run. You may not modify any other part of the TestIntArrayList.java program. Once you have changed the test file, run it to test IntArrayList. The test program will print out error messages telling you what parts of a given Version did not work as expected.
When you are done, turn in your two java files before this Exam times out in hours by uploading them to this Tests & Quizzes assignment.
Grading rubric total points possible, with possible extra credit for Versions and :
No points for code that does not compile.
points if you dont use the given constructors and methods.
points if you modify the test program anywhere except the VERSION constant.
points for only implementing Version of IntArrayList out of points
points for programming style errors for example, incorrect capitalization!
to for no or insufficient pseudocode comments describing your approach to the code.
points for no or incorrect pre and postconditions for methods not constructors
to for each other bug or error, such as:
the various methods do not throw the required exceptions
incorrect implementation of constructors or methods
the tests for the given VERSION do not all pass but see below
points for successfully implementing Versions and points
points for successfully implementing all four Versions points
Note: if you try to implement a given Version and only partially succeed, you
will get credit for all Versions whose tests completely pass, and we may give
you partial credit for the partially implemented Version.Before reading this document, read The List data type.docx or pdf as an overview
Reading these two documents in depth may take you about one hour
public class IntArraylist a skeleton for this class is provided for students to start with
import java.util.; provided for use of Arrays methods
Fields for IntArrayList provided as part of the IAL Java skeleton
private int size; the number of elements in the IntArrayList
private int list; the backing array for the IntArraylist
Constructors and methods for IntArraylist all to write except expand and capacity
public helper method capacity returns the length of the backing array
This method is provided for testing only
Note: valid indexes are through sizeexcept for insert, through size
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
