In: Computer Science
can someone please check this code?
– Enter Quantity of Numbers
Design a program that allows a user to enter any quantity of numbers until a negative number is entered. Then display the highest number and the lowest number.
For the programming problem, create the pseudocode and enter it below.
Enter pseudocode here
start
Declarations
num number
num high
num low
housekeeping()
while number >=0
detailLoop()
endwhile
finish()
stop
housekeeping( )
output ”Enter a number>”
input number
return
detailLoop()
if number > high then
high = number
else
if number < low then
low = number
endif
endif
output “Enter a number”
input number
return
finish()
output “High number is”, high
output “Low number is”, low
output “Program ended”
return
start
Declarations
num number
num high
num low
housekeeping()
high=number
low=number
while number >=0
detailLoop()
endwhile
finish()
stop
housekeeping( )
output ”Enter a number>”
input number
return
detailLoop()
if number > high then
high = number
else
if number < low then
low = number
endif
endif
output “Enter a number”
input number
return
finish()
output “High number is”, high
output “Low number is”, low
output “Program ended”
return