Write a program named AverageGrade that reads a text file ( attached ) that contains a grade (for instance 87) on each l
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Write a program named AverageGrade that reads a text file ( attached ) that contains a grade (for instance 87) on each l
Write a program named AverageGrade that reads a text file ( attached ) that contains a grade (for instance 87) on each line. The program should calculate and print the average of the grades. Note that the text file has an erroneous input in it. Your program should handle the erroneous input as follows: 82.a is an invalid grade, skipping The average grade is ***(display average skipping erroneous input)*** Attach the file. Rubric: program able to handle valid input (no erroneous input): 11 program able to skip erroneous input and display a message, accordingly: 4 Maximum file size: 100MB, maximum number of files: 1 !!!
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!