Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed
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"

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_2

Step: 3

blur-text-image_3

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

Introduction to graph theory

Authors: Douglas B. West

2nd edition

131437372, 978-0131437371

More Books

Students also viewed these Mathematics questions