Homework 1: Welcome to Java

Due September 17 @ 8:00pm on Autolab

This assignment will help you refresh your programming abilities and get you a basic introduction to Java. You should start early so that you can attend office hours when problems come up.

Introduction

In this assignment you will be creating a basic class that wraps an array and provides useful methods for interacting with it. Download a pre-prepared Eclipse Project hw1.zip and import it into Eclipse using these instructions. You will make all of your changes inside of MyArray.java.

MyArray

Inside the file MyArray.java you will find 10 method declarations with empty bodies. You need to implement each incomplete method and write code to test them inside in the main method. There are comments inside the file to help you understand what the methods are supposed to do.

You are free to add new methods to the file (such as helper methods), but do not change the names of any of the provided methods. If you do, you will automatically fail the autograder.

Grading and Submission

There are two parts of the grading of this assignment:

  1. For the first 70 points, your submission will be auto-graded on Autolab.
  2. For the next 30 points, your submission will be manually graded to check for things like style, implementation methodology, and the testcases you include in the main method.

You will submit your program to Autolab. Login to the system and you will see homework 1. Once there, submit MyArray.java for grading. On the page that follows your submission you will see your live score (out of 70). It may take up to a few minutes for your score to appear, during that time just hit refresh in your browser. If you receive a lower score than you expect, you can click on the score to see the feedback from the autograder.

Important Notes