For short listing of the candidates for a job in a company in different sections based on
the cumulative percentage of the following fields.
• If cumulative percentage is more than 80% then hire in HR department.
• If cumulative percentage is less than 80% and greater than 70% then hire in
accounts department.
• If cumulative percentage is less than 70% and greater than 60% then hire in
sales department.
• If cumulative percentage is less than 60% and greater than 50% then hire in
helping staff.
The cumulative percentage will be calculated as 60% of the marks obtained in test
conducted by the company and 40% of obtained marks in interview. Total marks for the
test and interview is 200 each. Write a computer program to construct a function with
name “Selection” to calculate the cumulative percentage and then display the message
in which section the candidate is selected.
Comments
Leave a comment