Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(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

image text in transcribed

image text in transcribed

(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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Temple Of Django Database Performance

Authors: Andrew Brookins

1st Edition

1734303700, 978-1734303704

More Books

Students also viewed these Databases questions