Hello. I am trying to design a program in Delphi 4 that will allow me to calculate statistics based on a range of information taken from the user.
I need the program to first take a range of ages from the user and from a inbuilt menu, alow the user to perform various different functions with this information.
I need the menu to contain the following options:
1.A procedure that will ask the user to introduce the age of every person of the community.
2.A procedure/function that calculates the average age of this population.
3.A procedure/function that finds the age range with a maximum number of people.
4.A procedure/function that finds the age range with the smallest number of people.
5.A procedure that shows graphically the number of people in the different age range:
I am however a little confused. I am still quite new to pascal and can't get my head around it!
How would you guys do it?
Any help would be greatly apprciated!