|
Jackelony (m)
|
Please I know you all are very good programmers hence I come with this puzzle. Can anyone solve this?
A class of students earned the following grades or the six examinations taken in a PASCAL programming course.
Names Exam Scores (Percent)
Adams 45 80 30 95 55 75 Brown 60 50 70 75 55 80 Davis 40 30 10 45 60 55 Fisher 0 5 5 0 10 5 Hamilton 90 85 100 95 90 90 Jones 95 90 80 95 85 80 Cadwig 35 50 55 65 45 70 Osborne 75 60 75 60 70 8 Prince 85 75 60 85 90 100 Richards 50 60 50 35 65 70 Smith 70 60 75 70 55 75 Thomas 10 25 35 20 30 10 Wolfe 25 40 65 75 85 95 Zorba 65 80 70 100 60 95
i) Using an array of RECORD data structure, write a PASCAL program that will read the data and print out the students’ names, exam scores and average grades in ascending order of students’ names. ii) Using a two dimensional array to store the students’ names and another two dimensional array of integers to store the exam scores, write a PASCAL program that will read the data and print out the students’ name, exam scores and average grades of all the students in ascending order of the students’ names.
|
|
|
|
|
|
sbucareer (f)
|
Is this your course work? Nairaland is no place to post and answer academic course work. We can give you pointers but not do your course work for you, you would be committing plagiarism.
Here is one pointer, use google
If you cannot solve this simple year one programming assignment, you should really consider if the course you are doing is right for you?
Help ------------
Put students in an array i.e.
students: string[ ] := [Henry, Paul, etc];
Also put scores in array i.e.
scores: integer[] := [1, 4, 7, 50, 59, etc];
Use for loop to go through the array, both student and score. See how to use Record data structure
|
|
|
|
|
|
c0dec (m)
|
ah, my first real programming language  - i think i was 14 then. too bad i can't remember most of the syntax anymore.
|
|
|
|
|
|