Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In your assignment,explain your codes with comments. Without comments,your assignment will not be marked. Define all of your class member variables private explicitly and handle
In your assignment,explain your codes with comments. Without comments,your assignment will not be marked. Define all of your class member variables private explicitly and handle possible exceptions Question 1 Write a program that calculates student grades. Your program should read the data from a file that generated previously. You are asked to grade scores for 35 students. Student scores and student numbers are saved in a text file,named "scores.txt". In this file, the first line has two numbers, 35 and 5. The first number gives you number of students, and the second number gives you number of exams From the second line on, every lines have student number and scores for related exams. You can imagine the scores as Table 1. Table 1 Student Grades Student NO. Quiz1 Quiz Quiz3 Quiz4 Quiz5 12008 976 90 20 60 90 100 3002 3145 100 77 99 78 50 12555211 100 100 90 78 90 13456211 90 80 87 78 90 We want to calculates average scores of each student and calculate averages of each quiz. Your program should read the data from the scores. txt" file. When you run your program, you should have an out put as below. Also save the out put data in a file named final Report.txt
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started