Neco 2017 Computer Studies Question 8

Practice essay / theory question 8 from the 2017 Neco Computer Studies examination. This question covers Basic Programming, Python, File I/O, Control Structures .

Neco 2017 Computer Studies Essay / Theory
Topics: Basic Programming Python File I/O Control Structures
Question 8 NECO • 2017 • COMPUTER_STUDIES • essay

A school wants to develop a simple Python program to manage student scores for a term. The program should read a text file named 'scores.txt' where each line contains a student's name followed by three integer scores separated by commas, for example: 'Ada,78,85,92'. The program must compute each student's average, assign a grade (A for average ≥85, B for 70‑84, C for 55‑69, D for 40‑54, F for <40) and write the results to a new file 'report.txt' in the format: 'Ada: 85.0 (A)'.

Question Parts

( a )
Write the complete Python program that performs the required task. Include file handling, reading, processing, grading and writing the output.
( b )
Identify two potential runtime errors that could arise when the program is executed and propose a code modification to handle each error gracefully.

Detailed Solution & Marking Scheme

Get the step-by-step solution, key points required by examiners and detailed marking guidance through the Edcrib AI Tutor.

Reveal Answer

About This Question

This is Neco 2017 Computer Studies Question 8. It is one of the essay questions from the 2017 Neco Computer Studies examination.

The question covers Basic Programming, Python, File I/O, Control Structures .

Master the Exam!

You've seen a preview, but there are thousands more questions plus AI tutor to break down complex solutions.

Unlock Full Access Available for Android & Windows
Chat with Support