Comp 152 Project 1
Due: Friday Sept 28th at 11:59pm
Summary:
In this project you'll have the opportunity to refresh your comp101
experience and get used to programming again.
Details:
Compiling:
You can use whatever you want to use to build your program. I will use
oracle java 6 (the version installed on the various lab computers) as
the reference platform. I'll use it to grade and if your project works,
you'll be graded accordingly. If your program doesn't work on Oracle
java 6 - it will be graded accordingly. Note for those of you using
Java 7 (the default these days) you might want to get the older version
as well.
Program Requirements:
Write a program that will
- open the file data.txt (get the file from the website here).
- Read each line into your program.
- Break the line into 5 pieces of data.
- The first piece is the language's current ranking. It should be an integer
- The next piece is the language's ranking last year at this time. It is also an integer
- The third piece is the programming language name. It is a string.
- The forth piece is the programming language's mind share percentage
- the fifth piece is the language's change in mind share since last year at this time.
- make an object to hold those five peices of data
- put those objects into a collection (array or ArrayList)
- loop and ask the user which they want to do
- sort on this years ranking
- sort on last years ranking
- print the list
- quit
- or
- loop and ask the user which they want to do
- look up item based on this years ranking
- look up item based on last years ranking (handle out of range gracefully.)
- print the list
- quit
- do this loop till the user selects quit.
When you are done:
You also need to have a readme.txt file in your folder which contains
- your name
- a brief (one paragraph) description of how you implemented the project
- anything that is left undone in the project.
when you have completed the program and the readme, zip up the whole
folder and submit it. Submit the
compressed folder as described below.
Submitting
I'm going to try using moodle for submission. If you go to moodle (http://moodle.bridgew.edu/) select comp152-002 and sumit to project 1.