Please write this pseudocode in the form of source code
Please write this pseudocode in the form of source code
1. Declare an array of array named 'Data' of size 300*5
2. Set count = 0
3. Set i=0
4. For row i of the array
5. If (count==300)
6. break
7. end if
8. Set j=0
9. call function check()
10. if check() returns true then
11. Set Data[i][j] = Student ID
12. Set Data[i][j+1] = Student Name
13. Set Data[i][j+2] = Student class
14. Set Data[i][j+3] = Student Phone No
15. Set status in Data[i][j+4] = Admitted
16. Else
17. Set Data[i][j] = Student ID
18. Set Data[i][j+1] = Student Name
19. Set Data[i][j+2] = Student class
20. Set Data[i][j+3] = Student Phone No
21. Set status in Data[i][j+4] = Not Admitted
22. Set count=count+1
23. Set i = i+1.
24. Declare a method check()
25. If current time < 12hrs and student_temperature < 38 then
26. return true
27. else return false
28. end if
29. end check() function
30. Declare a function search(). It takes student ID and 'Data' as a parameter.
31. Loop through the array
32. If student ID found then
33. display student name, student class, student phone no, status.
34. End If
35. End search() function
Step by step
Solved in 2 steps