i need help with my last method studentSearch() the main idea of the method is to make sure not more than 300 students can be allowed at college on one day start declarations num studentNum num studentTemp num numOfStudents num maxOfStudents = 300 num timeOfDay num maxTemp = 38 degrees num studentNumArray ( String studentName String studentStatus string nameArray ( string QUIT "ZZZ" while numOfStudents < maxStudents while quit <> "ZZZ" studentScreening() tempMonitor() timeMonitor() studentArray() numOfStudents = numOfStudents + 1 studentLimitammount() endwhile endwhile stop studentScreening() output "Enter student number" input studentNum output "Enter student name" input studentName output " studentTemp" input studentTemp output "Enter time" input "time" return tempmonitor() if studentTemp >maxTemp output studentStatus = "Admitted" status = "Not 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 arrayStudentNumber,numOfStudents = studentNum arrayStudentName,numOfStudents = studentName endwhile return studentSearch()
i need help with my last method studentSearch() the main idea of the method is to make sure not more than 300 students can be allowed at college on one day
start
declarations
num studentNum
num studentTemp
num numOfStudents
num maxOfStudents = 300
num timeOfDay
num maxTemp = 38 degrees
num studentNumArray (
String studentName
String studentStatus
string nameArray (
string QUIT "ZZZ"
while numOfStudents < maxStudents
while quit <> "ZZZ"
studentScreening()
tempMonitor()
timeMonitor()
studentArray()
numOfStudents = numOfStudents + 1
studentLimitammount()
endwhile
endwhile
stop
studentScreening()
output "Enter student number"
input studentNum
output "Enter student name"
input studentName
output " studentTemp"
input studentTemp
output "Enter time"
input "time"
return
tempmonitor()
if studentTemp >maxTemp
output studentStatus = "Admitted"
status = "Not 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
arrayStudentNumber,numOfStudents = studentNum
arrayStudentName,numOfStudents = studentName
endwhile
return
studentSearch()
Step by step
Solved in 2 steps with 2 images