Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
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!
0 · ·