chaos
Mar 4th, 2003, 10:51 PM
OK, iam willing to pay someone $5.00 to create a VB program for me. Its a quite easy project,but for some reason i can not understand it :(. OK heres the project:
The object of this program is to take a set of names and salaries and to calculate and print some comparative statistics.
Input: Enter your data in pairs for each person: the name and alary. Use a 'flag' to indicate that you have finished entering data. A flag is a special marker that does not normally show up. (Name="xxx" or salary =-1) Don't forget to include a label on your form that tells the user what to tpye for the flag.
Output: PLace your output in a list box showing a table with the name, salary, difference between the salary and the average, and the percentage of the maximum. Below the table, print the average of all of the salaries and the maximum salary.
Use separate functioins to find the maximum, average, and percent difference values.
Sample input
Sam 23000
Roop 50000
Smith 62000
Doe 61000
Student 8000
Sample output:
Name Salary Sal - Ave % of Max
Sam 23000 -17800 37
Roop 50000 9200 81
Smith 62000 21200 100
Doe 61000 20200 98
Student 8000 -32800 13
Average Salary is 40800
Maximum Salary is 62000
Your Program should work with salaries in the 60 thousand range.
Also i would like the code for the project, so i can learn how it is done. IF you would like to do this plewase e-mail me at ND_Akeith@hotmail.com.
thanks,
-Keith
The object of this program is to take a set of names and salaries and to calculate and print some comparative statistics.
Input: Enter your data in pairs for each person: the name and alary. Use a 'flag' to indicate that you have finished entering data. A flag is a special marker that does not normally show up. (Name="xxx" or salary =-1) Don't forget to include a label on your form that tells the user what to tpye for the flag.
Output: PLace your output in a list box showing a table with the name, salary, difference between the salary and the average, and the percentage of the maximum. Below the table, print the average of all of the salaries and the maximum salary.
Use separate functioins to find the maximum, average, and percent difference values.
Sample input
Sam 23000
Roop 50000
Smith 62000
Doe 61000
Student 8000
Sample output:
Name Salary Sal - Ave % of Max
Sam 23000 -17800 37
Roop 50000 9200 81
Smith 62000 21200 100
Doe 61000 20200 98
Student 8000 -32800 13
Average Salary is 40800
Maximum Salary is 62000
Your Program should work with salaries in the 60 thousand range.
Also i would like the code for the project, so i can learn how it is done. IF you would like to do this plewase e-mail me at ND_Akeith@hotmail.com.
thanks,
-Keith