Sign in with
Sign up | Sign in
Your question

Program for storing students marks in a file in java

Last response: in Windows XP
Share
March 22, 2012 10:25:07 AM

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”
March 22, 2012 7:40:20 PM

This is a forum to help with problems and issues, it is not a job site.
m
0
l
September 14, 2012 8:24:39 AM

vamshi65 said:
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”

m
0
l
September 14, 2012 1:24:45 PM

We won't do your class assignments for you. You're being graded on what YOU write, not what we write.
m
0
l
!