Question: TASK 1 (15 marks): Write a program to accomplish the following tasks: Consider there are several files. The file name is defined as SUBJECT_CODE txt.

 TASK 1 (15 marks): Write a program to accomplish the following

TASK 1 (15 marks): Write a program to accomplish the following tasks: Consider there are several files. The file name is defined as "SUBJECT_CODE txt". SUBJECT_CODE is a unique code used to represent a subject, for example, ICT701, ICT71 1, etc. The contents in a file are typically as following: Assignment 1 (20%) Assignment 2(20%) Final exam (60%%) Student ID 8.20 13.81 45.20 $12334 14.50 18.40 74.50 $12323 12.50 13.00 65.27 $43314 Each line represents marks for assignment I out of 20, assignment 2 out of 20 and final exam out of 100 for a specific student ID. Each file contains the marks for a specified subject. Write a program to load all files and process those files to get the average marks for assignment I. assignment 2 and final exam for each subject, and save the result into a file named "SUBJECT_CODE_ave.tx!". You also need get the number of failed students in each subject assuming the passing mark is 50, and save the result into a file named "SUBJECT_CODE_failed.txt&quot

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