Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,157 members, 7,818,504 topics. Date: Sunday, 05 May 2024 at 05:32 PM

Who Can Crack This Pascal Puzzle? - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Who Can Crack This Pascal Puzzle? (2666 Views)

Pascal Program For Matrix Multiplication / Simple Logic!think U Can Crack This? / Algorithm For Pascal Program (2) (3) (4)

(1) (Reply)

Who Can Crack This Pascal Puzzle? by Jackelony(m): 2:43pm On Sep 23, 2006
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.
Re: Who Can Crack This Pascal Puzzle? by sbucareer(f): 1:39am On Sep 24, 2006

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

Re: Who Can Crack This Pascal Puzzle? by c0dec(m): 11:38am On Sep 24, 2006
ah, my first real programming language smiley - i think i was 14 then. too bad i can't remember most of the syntax anymore.

(1) (Reply)

C++ Vs. Java / I Needed Area I Can Learn Graphics And Web Design In Aba, Abia State / What Is The Difference Between A Programmer And A Developer

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 11
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.