Then why are you learning it?
I know it's for school, but there are no school systems I'm aware of that make it mandatory for students to study programming.
Why? Because it's an easy to learn laguange that makes it easy for people to start out programming.
It is also a procedure oriented programming language that makes it harder for the user to program which in turn makes them have a better understanding on how to program efficiently then you can with OOP languages like Java, C/C++, and VB.
Yes it's old and outdated. But here in the states it was the main language they thought 10-15 years ago. And many school systems still have teachers that know how to program in it and still have the books to teach it with. So why buy all new books (which costs $1000s) when they can use the old ones that they already had and use them for an introduction to programming course?
Also just because it is no longer used to write programs doesn't mean it's pointless to use. The likly hood of seeing newer languages used in a buisness isn't that likely unless it's newer. Most buisness that's been usising computers since the 70's still have all their programs written in COBOL which is older then PASCAL. And if it's a company that's been using computers since the 80's then most likely they are running PASCAL based programs. C++ wasn't used much until the 90's. So when you are employed by a company to update their old programs it'll be highly helpful to know some of the older programming languages like COBOL and PASCAL as they are the ones that was used most back in the time.
And you really shouldn't be bashing older langauges as they are still just as powerful and they are reliable as it seems with programs that are 20-30 years old still doing their job just fine.
Now for Sergiu14. The logic for your program is quite simple.
All you need is a 2 dimentional array. Then read read the data in as [temp, hour, precipitation] for columns [1, 2, 3]. Then you sort the arry by column 1. That way the values you need will be the first and last rows of the array.
Don't ask me how to code it though. Because 1 I don't remember exactly how to program in PASCAL, 2 I don't intended to look up how to, and 3 it's your work and you need to learn how to do it.
I told you the steps of doing it and now it's your turn to write how to do it. It shouldn't take you more then 15mins as it's pretty easy to do.
NoPeace - out