First off it\'s important to note that this is requiring pseudocode, not a parti
ID: 3566963 • Letter: F
Question
First off it's important to note that this is requiring pseudocode, not a particular language, just the written steps. I know this is simple, but I'm just starting, and having a hard time writing the pseudocode correctly. Input a list of positive numbers, terminated by 0, into an array named Numbers[]. Then display the array and the largest and smallest number It needs to look like the psuedocode below(The lines in black).
First off it's important to note that this is requiring pseudocode, not a particular language, just the written steps. I know this is simple, but I'm just starting, and having a hard time writing the pseudocode correctly. Input a list of positive numbers, terminated by 0, into an array named Numbers[]. Then display the array and the largest and smallest number It needs to look like the psuedocode below(The lines in black). A program segment (Pseudocode) to display?s the person?s initials, with a period after each initial is given asExplanation / Answer
Declare Numbers[] as integer
Declare max as integer
Declare min as integer
Declare c As integer,
set c=1
Declare i As integer
set i=0
while c!=0
Input c
if c = 0
exit from loop
end if
else
set Numbers[i]=c
set i=i+1
end else
end while
set max=a[0]
set min=a[0]
while i<len(Numbers[])
if max=>Numbers[i]
then continue
end if
else
set max=Numbers[i]
end else
if min=>Numbers[i]
then set min=Numbers[i]
end if
end while
print a
print max
print min
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.