You are on page 1of 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 (malyk19@yahoo.com) 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