Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise #3: Write a program that finds all students who score the highest and lowest average marks of the first two homework in CS (I).

image text in transcribed
Exercise #3: Write a program that finds all students who score the highest and lowest average marks of the first two homework in CS (I). Your program should read the data from a file called "hw2.dat" and displays the output to another file called "hw2.out" and on the screen as well. Each data line contains student name and his/her marks. The output should display all student names, marks, numerical grades and letter grades. In addition, you should output the highest and lowest average marks and those who earned. If your input file contains: Input File:"grade.txt" Ali 80 81 Noora 60 70 Aisha 70 78 Ruqaya 70 88 Output File "report.txt" Then your output should look like: Student Name Markl Avg. Mark Grade Ali 80.00 81.50 Noorai 60.00 65.00 Aisha 70.00 74.00 The Maximum average mark is: The minimum average mark is: Noorai Mark2 81.00 70.00 78.00 81.5 Scored by: 65.5 Scored by: 308

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

Top Accounting And Auditing Issues For 2021 CPE Course

Authors: CCH Tax Law Editors

1st Edition

0808055348, 978-0808055341

More Books

Students also viewed these Accounting questions

Question

outline some of the current issues facing HR managers

Answered: 1 week ago