Attachment 1bn
Attachment 1bn
1. The manager of the company has informed his assistant to enter the age
of all the workers working in production department. Among all he has to
find the employee with maximum age employee. Help the manager to
find the maximum age employee by storing the all age of all employee in
1D array dynamically. Use functions to solve the task.
Input Format
19 21 22 23 18
Constraints
All numbers should be greater than 0.If constraints are not matched then
display "wrong input"
Output Format
23
2. Suppose there is class of 30 students who have attendance between 40-
100%. The university has decided to give the bonus attendance between
for those students who have the attendance between 70-74% to make it
75%. Identify the students those have attendance after adding the bonus
attendance. Suppose students have its Roll_no & attendance. Add the
bonus attendance to the obtained final attendance of student through
array. Use functions to solve this tasks.
Input Format
The input should contain a roll_no, and attendance of 25 students.
Output Format
For each test case, display the roll_no and increased attendance of those
students only who lies between the obtained attendance of 70-74%.
3. Suppose there is class of 10 students who have CGPA between 0-10. The
university has decided to give the grace for those students those who have
the CGPA between 4.5 to 4.9 to make it 5. Identify the students those
have CGPA after adding the grace marks. Suppose students have its
Roll_no & CGPA. Add the grace CGPA to the obtained CGPA of student
by adding grace of 5 marks into the students through list comprehensions.
Input Format
Constraints
CGPA must lies between 1.0 to 10.0 otherwise print "invalid input"
Output Format
For each test case, display the roll_no and increased CGPA of those
students only who lies between the obtained CGPA of 4.5-4.9
Set B(Even Rollno)
1. The manager of the company has informed his assistant to enter the
age of all the workers working in production department. Among all
he has to find the employee with minimum age employee. Help the
manager to find the minimum age employee by storing the all age of
all employees in 1D array. Use functions to solve this task.
Input Format
30 43 27 51 19
Constraints
All the inputs should be greater than 0 otherwise print wrong input
Output Format
19
Input Format
The input should contain list of employees with UID and PMS point.
Output Format
For each test case, display the UID and PMS point after bonus is being
added.
3. The manager of company has asked his assistant to present him with
the list the ages of all the workers working in manufacturing division
who are having the experience of 20 years. The assistant of thee
manager replied him with the list of 10 employees who are having the
experience of 20 years . Write a program that store the age of all 15
employees in 1D array and then print the total count of employees
whose age lies between 50 and 60. Use functions to solve this task
Input Format
57 49 54 48 59 55 46 57 58 60 58 62 56 70 73
Constraints
The Age of the employees should be greater than or equal to 40 and
less than or equal to 60.
Output Format
8