Create a WINFORM application named FirstNameLastNameM6B Save the application in the Unit6MasteryirstnameLastname folder. Create an application that will simulate a gradebook. Use the records.txt text file that contains six records that include: studentName, grade1, grade2, grade3, grade4 and grade5. These fields are separated by a comma. So, you have 6 students and each of the students have 5 grades. On form load have the student names brought into a string array. Have the total of the 5 grades for each student brought into a double array. You will have an array that holds each student’s total of the 5 grades listed. (You can use tokenization to accomplish this. The first field is the name and the next five are all grades that will need to be added together and stored in your array.) There should be a form with a listBox that displays the student names on form load. There should also be labeled labels for each of the students’ total of grades, their average and the letter grade. When the user clicks on a name in the listbox button that students total, average and letter grade should be displayed in the appropriate labels. You can do the necessary calculations inside the SelectedIndexChanged event of the listBox and get the letter grade by passing the average to a method and determine the letter grade based on the following criteria. Average Letter Grade 90-100 A 80-89 B 70-79 C 60-69 D 0-59 F Return the letter grade back so it can be displayed along with the other information. Once the user clicks on another entry in the listBox the information in the labels should be replaced by the appropriate ones for the selected student. There should be a button to Save to File that will take all students names and write them back to a text file called gradebook.txt along with their average and letter grade. There will be an exit button to exit the application. You will need at minimum an array for name, grades, and letter grade.
Create a WINFORM application named FirstNameLastNameM6B
Save the application in the Unit6MasteryirstnameLastname folder.
Create an application that will simulate a gradebook. Use the records.txt text file that contains six records that include: studentName, grade1, grade2, grade3, grade4 and grade5. These fields are separated by a comma. So, you have 6 students and each of the students have 5 grades.
On form load have the student names brought into a string array. Have the total of the 5 grades for each student brought into a double array. You will have an array that holds each student’s total of the 5 grades listed. (You can use tokenization to accomplish this. The first field is the name and the next five are all grades that will need to be added together and stored in your array.)
There should be a form with a listBox that displays the student names on form load. There should also be labeled labels for each of the students’ total of grades, their average and the letter grade.
When the user clicks on a name in the listbox button that students total, average and letter grade should be displayed in the appropriate labels. You can do the necessary calculations inside the SelectedIndexChanged event of the listBox and get the letter grade by passing the average to a method and determine the letter grade based on the following criteria.
Average Letter Grade
90-100 A
80-89 B
70-79 C
60-69 D
0-59 F
Return the letter grade back so it can be displayed along with the other information. Once the user clicks on another entry in the listBox the information in the labels should be replaced by the appropriate ones for the selected student.
There should be a button to Save to File that will take all students names and write them back to a text file called gradebook.txt along with their average and letter grade.
There will be an exit button to exit the application.
You will need at minimum an array for name, grades, and letter grade.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 12 images