Question: 10.4 Activity 4 10.4.1 Objective Write a Java program to read all the data according to its specific type using Scanner and File class.

10.4 Activity 4 10.4.1 Objective Write a Java program to read all

10.4 Activity 4 10.4.1 Objective Write a Java program to read all the data according to its specific type using Scanner and File class. 10.4.2 Problem Description Assume you have a file (student.txt) that contains students' data as shown in Figure 10.2. The file consists of 10 rows with each row contains student' name, marks and grades accordingly. Write a Java program that should be able to: i. ii. iv. V. declare one dimensional arrays read the data one by one and assign to the specific arrays that have been declared sort the students according to their mark in descending order calculate total marks and its average display out the sorted list of students (name, marks & grade), total mark and average Badli 86.00 A Tarmizi 80.00 A Faisal 85.00 A Maryam 94.00 A Fatimah 64.00 C Humayraa 85.00 A Abdullah 63.00 C Luqman 60.00 c Zahraa 72.00 B Abdurrahman 75.00 B Figure 10.2: student.txt

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 Programming Questions!