Who Can Crack This Pascal Puzzle?

Welcome. Please Login, Register, Or Activate! 
type your username and password to login
Date: November 25, 2009, 09:59 AM
432259 members and 299234 Topics
Latest Member: wiwily
Nairaland [Nigerian Forum] Home Help Search Who is currently online? Login Register
Nairaland Forum  |  Technology  |  Programming  |  Who Can Crack This Pascal Puzzle?
Pages: (1) Go Down Send this topic Notify of replies
Author Topic: Who Can Crack This Pascal Puzzle?  (Read 484 views)
Jackelony (m)
Who Can Crack This Pascal Puzzle?
« on: September 23, 2006, 02:43 PM »

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)
Re: Who Can Crack This Pascal Puzzle?
« #1 on: September 24, 2006, 01:39 AM »


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)
Re: Who Can Crack This Pascal Puzzle?
« #2 on: September 24, 2006, 11:38 AM »

ah,  my first real programming language Smiley - i think i was 14 then. too bad i can't remember most of the syntax anymore.
 Share Web Service Addresses And Information  Free C++ Compiler  Help On C#  Page 2
Pages: (1) Go Up Send Topic to Friend by E-mail Reply 


Sections: Autos/Cars (2) Jobs/Vacancies (2) (3) Career Talk Education General(2) Politics Romance Computers Phones Travel
Sports Fashion Health Religion Celebrities TV/Movies (2) Music/Radio (2) Books Webmasters Programming

Links: Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10

Nairaland is owned by Oluwaseun Osewa. See also: Nairalist Classified Ads
Nairaland Forum | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.