Comp 102 Project 1
Due: a week and a day after assignment. Feb 2nd for Mon/Wed and Feb 3rd for Tue/Th Thurs 2/4 at 11:59pm
In this project you'll have the opportunity to refresh your comp101
experience and get used to the computing environment that you will use
for this class.
update: removed median and mode calculations.
This project, and all projects in this class, will use csdev01 as the
reference platform. If it works on csdev01, then it works for grading,
if it does not, then it does not work for grading.
See My csdev01 introduction page if you've not used the system before.
To compile a java program at the command line on csdev01 use these commands.
to compile a java file called project1.java which is in the current folder use
if that file has a main method in it, you can run the program by typing
at the command line after a sucessful compile.
In this project you will build a small program that will query the user
for input, store that input into an ArrayList and finally print out
statistics on that data.
Do all of your work for this lab in a separate folder devoded to this lab.
You will write a program that will simulate an old style grading
program. You will read in all of the students names and their grades.
When the user has finished entering them all, your program will
calculate the mean, median and mode (most common grade) of all grade
entered. Then you will print these three peices of data out first, then
print all of the students who scored above the mean, followed by a
break and then all of the students who scored below the mean.
You will need at least two classes. The first class will be the class
that stores the data, it should have one instance variable for a
string, one for a floating point or decimal number.
The other class or classes should contain at least one ArrayList.
must use ArrayList(s) to store the instances of your first class. (do
not use plain arrays for this lab. This other class (or these other
classes depending on your design) is where all of the logic for reading
in data and calculations on that data will go.
You also need to have a readme.txt file in your folder which contains
when you have completed the program and the readme, zip up the whole
folder and submit it. (I recommend using konqueror to compress the
folder. right click on the folder, choose the compress submenu, from
there choose one of the compress as options. Submit the
- your name
- a brief (one paragraph) description of how you implemented the project
- anything that is left undone in the project.
from the command line on csdev01, use the following line to move into
then use this line to run the submit program:
This will pop up a window allowing you to choose your class (and
possibly section) and the file to submit. When you have done so press
submit and in a few seconds (longer if you submit a really large file)
you will see a dialog pop up telling you your submission was sucessful.