Question
This assignment is designed to give you practice with using a version control system. You can use any version control tool you wish. A suggestion
This assignment is designed to give you practice with using a version control system. You can use any version control tool you wish. A suggestion is github but many students prefer to use
bitbucket. No matter which system you use, you must allow access to your repository to the TA and the grader for grading. If no access is given, you will not be given credit.
Github: If you are using github, you will need to create a github account. Select the free public account option as you will need to provide access to this account for grading.
You will need to create a local git and github repository.
Bitbucket:
If you use bitbucket, there are many tutorials available on Youtube and other sources.
Be sure to follow these steps in order to receive full credit for the assignment. These instructions
assume that you are using Eclipse. If you are not, then you are responsible for the similar results
for each step.
1.
Create the initial version
a.
Create the package cse360assign2.
b.
Copy the file SimpleList.java
to this package.
c.
Commit the project
to git and git
hub (or bitbucket)
2.
Make the following changes to current list.
a.
add (int) As before, add the parameter to the list at the beginning (index = 0).
Move all the other integers in the list over so there is room. If the list was full,
then increase the size by 50%
so there will be room.
Increment the count.
b.
remove (int) As before, if the parameter is in the list, then remove it. The other
values in the list may need to be moved down. Adjust the count as
needed.
If the list has more than 25% empty places, the decrease the size of the list.
3.
Create the second version
a.
append (int) The append method should append the parameter to the end of the list. If the list was full, then increase the size by 50% so there will be room.
Increment the count.
b.
first (): int
Return the first element in the list
c.
size (): int Return the current number of possible locations in the list
d.
Test your solution and then commit the project to git and github. (or bitbucket)
4.
Submit your java file
( SimpleList.java)
.
Put the URL to your
code
repository and access information in the comment for the assignment submittal
.
The repository will be check
ed as part of the grading.
Notes
A program that does not compile will receive little or no credit.
Access to the repository must be given.
No late assignments will be accepted.
Test your code thoroughly.
Inte
ger arithme
tic should be used to determine the number of elem
ents to increase or
decrease.
Round down o
n all c
alcul
ations.
Annotations
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started