0% found this document useful (0 votes)
23 views

ECE1113 Assignment#3

This document provides instructions for Assignment #3 in ECE 1113 Computing Systems and Programming. Students must include specific comments at the top of their program submission. They can choose how to solve the problem but must perform the required tasks and include comments. Students must submit a hardcopy and may email a softcopy for a bonus. The program must allow users to enter exam results into a text file, then find the maximum and minimum marks, sort the marks in descending order, calculate the average mark, and count students above the average. Hints include creating the text file in notepad and using arrays.

Uploaded by

uda_1965
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

ECE1113 Assignment#3

This document provides instructions for Assignment #3 in ECE 1113 Computing Systems and Programming. Students must include specific comments at the top of their program submission. They can choose how to solve the problem but must perform the required tasks and include comments. Students must submit a hardcopy and may email a softcopy for a bonus. The program must allow users to enter exam results into a text file, then find the maximum and minimum marks, sort the marks in descending order, calculate the average mark, and count students above the average. Hints include creating the text file in notepad and using arrays.

Uploaded by

uda_1965
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

ECE1113-Computing Systems and Programming

Semester I 2009/2010

Assignment #3 (DUE: 1 OCTOBER 2009)


At the beginning of your computer program, you must have the following comments:

/* Name: Your name */


/* Matric Number: */
/* Course: ECE 1113 */
/* Class Section: */
/* Assignment #2: */

You are free to choose the way you like to solve the problem, but make sure your program
performs the required tasks. Besides, you need to include any necessary comments to describe
the next statement that you write. You are also asked to submit the hardcopy of your assignment
and including program and its output. Finally, if you need to get a free bonus, then forward
softcopy of your assignment to my email ([email protected]) and mention your details in it
(Matric No. and Section).

NOTE:

1. NO LATE SUBMISSION WILL BE ACCEPTED!

2. ANY COPIED ASSIGNMENT WILL BE GIVEN A ZERO MARK!

Write a program that will allow the user to enter the results of TEST1 for (Computing
Systems and Programming) subject and store them in a data file named TEST1.txt. The
data file “TEST1.txt” should have the following format:

Matric No. Name Mark

Then the program shall perform the following tasks:

 Finding the maximum and the minimum marks and print them with their corresponded
Matric No. and Name on the screen.
 Sorting the marks in a descending format.
 Calculating the average mark
 Calculating the number of the students who have marks higher than the average.

Hint:
1. You may start by creating a text file using the notepad and name it “TEST1”, then write
the given format “Matric No., Name and Mark” in the first line with a tab space between
each other.
2. You will also need to use the arrays to manipulate the data to write the request code.

You might also like