Neco 2023 Computer Studies Question 8

Practice essay / theory question 8 from the 2023 Neco Computer Studies examination. This question covers Basic Programming, Python .

Neco 2023 Computer Studies Essay / Theory
Topics: Basic Programming Python
Question 8 NECO • 2023 • COMPUTER_STUDIES • essay

A school needs a program to manage term scores for its students. The program must: 1. Prompt for the number of students (n). 2. For each student, read the student's name and three test scores (each out of 100). 3. Compute the total and average score for each student. 4. Assign a grade according to the average: A ≥ 70, B 60‑69, C 50‑59, D 45‑49, F < 45. 5. After all data are entered, display a summary table showing Name, Total, Average (to one decimal place) and Grade, sorted in descending order of average. Write the solution in Python and answer the questions that follow.

Question Parts

( a )
Write a complete Python program that fulfils the above requirements. Include comments that explain each major step of the algorithm.
( b )
Using the following sample input, show the exact output produced by your program (including headings and alignment).\n\nSample input:\n4\nAlice 78 85 92\nBola 64 58 71\nChinedu 45 50 48\nDora 88 90 84
( c )
Identify two logical errors that could arise if the programmer mistakenly uses integer division ("/" in Python 2) when calculating the average. Explain the effect of each error on the final grades.
( d )
Analyse the time complexity of the sorting step in terms of n. Suggest an alternative sorting method that could improve performance for very large n and justify why it would be better in this context.

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 2023 Computer Studies Question 8. It is one of the essay questions from the 2023 Neco Computer Studies examination.

The question covers Basic Programming, Python .

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