Question: (JAVA) This is what I have so far. I don't know how to only read five lines of a file and calculate the average. Thanks

 (JAVA) This is what I have so far. I don't know

how to only read five lines of a file and calculate the

(JAVA) This is what I have so far. I don't know how to only read five lines of a file and calculate the average. Thanks for your help!

/* In this program, we will further develop homework3_3 You will repeatly calculate the average score for five student over 5 exams and determine the letter grade In order to do that, you need to (1) create a class called homework4_3 (2) run a loop which repeat for 5 times, one time for each user (3) READ all the scores from a file called "scores.txt" (4) There are 5 students, and 5 exam scores for each student (4) calculate the average and determine the letter grade by following rules - [90,100] A - [80,89] B - [70,79] C - [60,69] D - [0-59] F (5) display letter grade by using the following sentence "Student Number M's grade is N." M is the number of student, N is letter grade you determined according to the average score. YOU HAVE T0 uSE LOOP and INPUT FILE IN THIS HOMEWORK. Example: Please find the scores.txt in the same folder. Here are the expected output: Student Number 1 's grade is F. Student Number 2 's grade is D. Student Number 3 's grade is C. Student Number 4 's grade is B. Student Number 5 's grade is A

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!