Ask a New Question

Asked by A

Pseudocode and flowchart to create a program to find the smallest and largest value among 100 numbers. Display an appropriate
message for the smallest and largest numbers.
3 years ago

Answers

Answered by oobleck

mink = maxk = 1
max = min = num(1)
for i=2..100 do
if min < num(i) then {min = num(i) ; mink = i}
if max > num(i) then {max = num(i) ; maxk = i}
next i
print "maximum is num(maxk) = max"
print "minimum is num(mink) = min"
3 years ago

Related Questions

I need help with pseudocode, and any help regarding forming these programs in Visual Logic would be... I have the pseudocode but i am confused with this question. Modify the Pay Calculator design from... Using pseudocode or a flowchart write a program that does the following: Allow the end user to en... Using pseudocode or a flowchart write a program that does the following: Design the logic for the... pseudocode and flowchart start 0 find the even number then add those even number and display sum of... This pseudocode is an example of which structure? INPUT time SWITCH time CASE “morn... This pseudocode is an example of which structure?%0D%0A%0D%0AINPUT time%0D%0A%0D%0ASWITCH time%0D%0A... This pseudocode is an example of which structure? INPUT time SWITCH time CASE "morning": OUTPUT "Goo... This pseudocode is an example of which structure? INPUT time SWITCH time CASE “morning”: OUTPUT “Goo...
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use