Program for storing students marks in a file in java

Status
Not open for further replies.

vamshi65

Honorable
Mar 22, 2012
2
0
10,510
Dr. Murthy has with him the names and marks of 25 students in three subjects namely Mathematics, Physics and Chemistry. He needs to have the following operations done on this data (refer Data_JavaAssessment7.txt):
a. Store student name and marks in separate files Maths.txt, Physics.txt and Chemistry.txt
b. Display the toppers in each subject (Mathematics, Physics and Chemistry)
c. Display the topper in these students. Topper is one who has the highest total marks.
Before you proceed, another 5 students approach Dr. Murthy saying that their marks have not been stored. You will need to store the data (names and marks in each subject) of these 5 students in Data_JavaAssessment7.txt and then perform the above mentioned operations.
You should handle exceptions like NotMarksException and MarksOutOfRangeException if student enters non-integer data and if student enters marks more than 100 or less than 0 respectively.
Dr. Murthy has also asked you to do the following:
• Follow Java coding standards
• Design separate classes for displaying menus or data, storing data and performing logic
• Package your classes in “marks”
 

harikishantalasila

Honorable
Sep 14, 2012
1
0
10,510

 
Status
Not open for further replies.