Results 1 to 6 of 6
Thread: Marks programm
- 12-07-2009, 06:08 PM #1
Member
- Join Date
- Dec 2009
- Posts
- 1
- Rep Power
- 0
Marks programm
Hi, i have to programm a markssaver:
which is able to
1. i give it some marks
2. it saves this marks
3. it saves the number of students
4. it gives me back the marks + the students+ the average
do someone knows about such a programm code for me (java)?
can i download it somewhere?
i'm looking forward to hearing from you
thxxx
- 12-07-2009, 09:39 PM #2
Senior Member
- Join Date
- Aug 2009
- Location
- Pittsburgh, PA
- Posts
- 285
- Rep Power
- 12
I googled "class grades" and got a bunch of choices.
Rule 12: Never program for yourself what others have already done.
Many teachers get by with just a spreadsheet.
-
So let me get this straight: you have an assignment to do, and you're asking folks here to find the code for you so you can hand it in as your own? Am I missing anything? You're not studying to be a politician are you?
- 12-08-2009, 08:45 PM #4
Senior Member
- Join Date
- Aug 2009
- Location
- Pittsburgh, PA
- Posts
- 285
- Rep Power
- 12
Here's some notes that may help.
The important design step is to focus on interfaces:
- How does the program get the data from the user?
Prompt for a line where each line has name and grade
OR prompt separately for each name and each grade? - How is the data stored in a file? Typically each line in the file
has a name and grade separated by a special character like a colon. - What is the in-memory representation of the data?
Possibly a new class called GrayList which extends ArrayList
and contains Grade objects where each has a name and grade. - What is the format of the output?
Now write GrayList methods to read into a GrayList list from the console,
write a GrayList to a file, read a file into a GrayList,
and compute the average from a GrayList.
The final program more or less just calls these methods.
- 12-08-2009, 09:47 PM #5
Member
- Join Date
- Nov 2009
- Posts
- 96
- Rep Power
- 0
- 12-08-2009, 10:06 PM #6
Senior Member
- Join Date
- Aug 2009
- Location
- Pittsburgh, PA
- Posts
- 285
- Rep Power
- 12
Similar Threads
-
Retrieving double quotation marks from xml using java
By fireportal in forum New To JavaReplies: 3Last Post: 11-12-2009, 11:13 AM -
[SOLVED] my programm doesn´t run like it shoud be.
By AlejandroPe in forum New To JavaReplies: 3Last Post: 04-07-2009, 12:42 PM -
web programm (.jsp)
By renars1985 in forum New To JavaReplies: 1Last Post: 12-18-2007, 03:23 PM -
web programm (.jsp)
By renars1985 in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 12-18-2007, 08:34 AM -
Programm Error: cannot find symbol Help?
By junix in forum New To JavaReplies: 2Last Post: 12-10-2007, 05:30 AM
Bookmarks