Hi ya, I'm hoping that someone out there can help me here, I've been told to create this pascal program:-
it is required to read into a 4 * 7 real array weekly observed sunshine hours recorded at four weather stations. An example of the data is:-
Station Sun Mon Tue Wed Thu Fri Sat
1 2.3 4.6 5.2 3.1 0.2 1.6 1.8
2 6.1 5.9 8.2 7.6 9.4 9.1 6.5
3 3.1 6.2 1.7 9.3 6.5 8.4 1.2
4 11.2 8.2 9.6 10.4 9.9 12.3 10.1
The input data is to be fully validated ensuring data is within reasonable limits.
Output the data in the above form.
Also use the pascal procedure val to test for non-numeric data
The program will analse the data and produce a table of the following form.
Station Min Day Max Day Weekly Average
1 0.2 Thu 5.2 Tue 2.7
2 5.9 Tue 9.4 Thu 7.5
3 1.2 Sat 9.3 Wed 5.3
4 8.2 Mon 12.3 Fri 10.2
Write a program in pascal to achieve this making full use of a 2d real array and a 1d string array for holding days of the week
Anyone that can help will be loved forever!