L03

Due by the end of this meeting

Starter Files:


SUBMIT   /   Submission Summary

Lab-03

Today's Activities

Start by downloading the starter files. The program is InsertionSort, but it won't work right away. I've provided you with a version of Common that doesn't work with int[]. Your task is to change InsertionSort so that it uses an array of String, which this version of Common can work with.
Programming Activity 1
Change the name of the array numbers to names.
Your IDE probably provides an easy way to do that, so you don't have to hunt down every occurrence of "numbers" and edit it.

I know that Netbeans does.

Programming Activity 2
Set the array names to hold the following values:
Mal Zoe Kaylee Wash Inara Book Simon River
Programming Activity 3
Revise the method insertionSort to work on an array of String instead of an array of int. That will require you to make a few changes inside the body of the method, but it won't be very many changes.

Make sure to format your code before you submit it, and make sure all lines are 80 characters or less long.

You can probably complete all the required changes without disturbing the indentation at all, but there have been a lot of submissions with indentation problems, and when the solution to such problems is so very easy, you should just get into the habit of formatting your code regularly.

The changes you need to make won't likely push any line over 80 characters, either. But if you have the 80-character line showing on the screen, a quick scan down will confirm your line lengths as appropriate. Again, such an easy fix is one that you should be in the habit of making.


Submit this/these files:


SUBMIT   /   Submission Summary