Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Above is question in Activity 4 10.4.2 Problem Description Assume you have a file (student.txt) that contains students' data as shown in Figure 10.2. The

image text in transcribedimage text in transcribed Above is question in Activity 4

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. 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 iv. calculate total marks and its average V. 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 Luxman 60.000 Zahraa 72.00 B Abdurrahman 75.00 B Figure 10.2: student.txt 10.5.1 Objective Write a Java program to print into file using Print Writer. 10.5.2 Problem Description Modify your program as in Activity 4 by printing out the sorted list, total and average in an output file. Name the output file as result.txt. [Estimated Time: 30 minutes]

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

Step: 3

blur-text-image

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

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago