|
[SOLVED] File I/O Extra Credit Assignment FTW!
Hey guys, if you can help me work through this ill love you forever and im even willing to donate money to this site because its been so helpful!
This is the extra credit assignment that may save my grade and I have a slight idea of how to start but i wanna make sure I get off to a CORRECT start.
So we're suppose to have a Student and Controller Class
Now to start off the student class would probably be best. Am I correct in stating that the student class is to create a constructor for student to hold information about EACH student? Could someone give me an idea of how many variables I would need to hold the sufficient information.Or would the variables just include things like string Quiz1, string Quiz2, up to String xCred3?
Please see below for details regarding the assignment, then my question should make a little more sense lol
This is our assignment:
Write a program that will read a text file of students (the number of students can vary) and their corresponding grades for each assignemnt including extra
credit assignments / points.
Use a student class and a controller class
10 pts: The program outputs the grade of each student see example
10 pts: The program outputs the ranking of the student in the class.
10 pts: The program outputs output how many students got an A, how many got a B and how many got a C.
Use our current CIS234 class assignments to model your program. Use your scores as one of the student examples, and generate some sample data for
other students.
See attached file for sample file input and output.
Possible Points
Possible Total 500 pts Possible Total Extra Credit 45 pts
Assignment Quiz1 Quiz2 Quiz3 Project1 Project2 Project3 Midterm Final Attendance Xcredit1 Xcredit2 Xcredit3
Points 10 10 10 60 80 80 100 150 5 7 15 18
Test Data
Quiz1 Quiz2 Quiz3 Project1 Project2 Project3 Midterm Final Attendance Xcredit1 Xcredit2 Xcredit3
Homer
Simpson
8 6 7 53 45 70 81 119 0 5 7 6
Bart
Simpson
5 3 6 45 51 62 90 100 0 3 6 2
Lisa
Simpson
7 5 3 59 49 69 92 135 5 7 7 7
Calculations:
Grade = ((Sum(Assignments) + (Sum Extra Credit)) / 500) * 100
Letter Grade:
90% <= Grade A
80% <= Grade < 90% B
70% <= Grade < 80% C
70% > Grade F
Output example: (in a JOptionPane window)
Grade for each student:
Name: Homer Simpson, Total Points: 407, Grade: 81.4, Letter Grade: B
Name: Bart Simpson, Total Points: 373, Grade: 74.6, Letter Grade: C
Name: Lisa Simpson, Total Points: 445, Grade: 89, Letter Grade: B
Ranking of Students:
Ranking 1: Homer Simpson, Lisa Simpson
Ranking 2: Bart Simpson
Number of Students for each grade:
Number of A students: 0
Number of B students: 2
Number of C students: 1
Number of F students: 0
|