1 Algorithm Practice
1 Algorithm Practice
21. As a result of the final year on-campus, Tekno School of Computing wants to
select the students, who have performed well in the interview. The report
given is in the matrix format. Now nominees for the post “placement
coordinators” are to be selected. The students with highest interview score is
the one to be nominated. The total number of inputs can be calculated using
(m*n+2). The first input integer corresponds to m, the number of rows in the
matrix( i.e. number of students) and the second integer corresponds to n, the
number of columns(number of interview rounds). The remaining integers
correspond to the elements in the matrix. The elements are read in row wise
order, first row first, then second row and so on. Assume that the maximum
value of m and n to be 10.
student1 1 4 5
student2 6 4 1
student3 2 4 3
27. In FUN Mall, Mirchi FM has arranged for a thriller game. Mr.Stev who is the
organizer for this event, calls one of the participant and ask him to pick a
number. If the participant picks positive number he has to enter into angel
house or if he picks zero or negative number he has to enter into ghost house.
Write a program to display to which house the participant has to be entered.
Given the following algorithm ,Choose the correct sequence.
28. A famous music director is now composing a pop album. To speed up his
composition of generating unpredictable rhythms, he wants the list of prime
numbers available in a range of numbers.
Can you help him out by choosing the correct algorithm?