Please write this pseudocode in the form of source code

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

 

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

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY