Searching for a student’s details and status. from this pseudocode start declarations num studentNum num studentTemp num numOfStudents num maxOfStudents = 300 num timeOfDay num maxTemp = 38 degrees num studentNumArray (maxStudents) String studentName String studentStatus string nameArray (maxStudents) string QUIT "ZZZ" while numOfStudents < maxStudents while quit <> "ZZZ" studentScreening() tempMonitor() timeMonitor() studentArray() numOfStudents = numOfStudents + 1 studentSearchDetails() endwhile endwhile stop studentScreening() output "Enter student number" input studentNum output "Enter student name" input studentName output " Student Temp" input studentTemp output "Enter time" input "time" return tempmonitor() if studentTemp >maxTemp = 38 degrees output studentStatus = "Not Admitted" status = Not Admitted else status = Admitted output studentStatus = "Admitted" end if return timeMonitor() output "Enter Time of Screening" input timeOfDay if timeOfDay > 12 status = "Not Admitted" output studentStatus = "Admitted" end if return studentArray() while numOfStudents < maxStudents arrayStudentNum(numOfStudents) = studentNum arrayStudentName(numOfStudents )= studentName endwhile return
Searching for a student’s details and status. from this pseudocode
start
declarations
num studentNum
num studentTemp
num numOfStudents
num maxOfStudents = 300
num timeOfDay
num maxTemp = 38 degrees
num studentNumArray (maxStudents)
String studentName
String studentStatus
string nameArray (maxStudents)
string QUIT "ZZZ"
while numOfStudents < maxStudents
while quit <> "ZZZ"
studentScreening()
tempMonitor()
timeMonitor()
studentArray()
numOfStudents = numOfStudents + 1
studentSearchDetails()
endwhile
endwhile
stop
studentScreening()
output "Enter student number"
input studentNum
output "Enter student name"
input studentName
output " Student Temp"
input studentTemp
output "Enter time"
input "time"
return
tempmonitor()
if studentTemp >maxTemp = 38 degrees
output studentStatus = "Not Admitted"
status = Not Admitted
else
status = Admitted
output studentStatus = "Admitted"
end if
return
timeMonitor()
output "Enter Time of Screening"
input timeOfDay
if timeOfDay > 12
status = "Not Admitted"
output studentStatus = "Admitted"
end if
return
studentArray()
while numOfStudents < maxStudents
arrayStudentNum(numOfStudents) = studentNum
arrayStudentName(numOfStudents )= studentName
endwhile
return
Trending now
This is a popular solution!
Step by step
Solved in 2 steps