Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question 2: a) Develop pseudo-code for a computer program that prompts the user

ID: 3672683 • Letter: Q

Question

Question 2: a) Develop pseudo-code for a computer program that prompts the user for five integers, accepts the integers, after performing necessary processing determines and displays the largest and smallest integers in the group.

b) Create a Console Application in Visual Basic 2012 that accepts user input of five integers, compares the numbers, determines and displays the largest and smallest integer in the group. A screen shot of a suggested solution is given below. [You will need to use relational operators and simple If/Then statements to accomplish this]

Explanation / Answer

Psudeocode

define procedure acceptNumbers() then

                print message like Enter the Five integers like a, b,c,d,e

                Accept each integer up to 5 integers.

                decalre max variable

                decalre min variable

                max =a;

                if max > b then

                max =b

                else if max >=c then

                   max =c

                else if max>=d then

                max =d

                else if max>=e then

                   max =e

                min =e;

                if min >d then

                   min = d

                if min> c then

                min =c

                if min>b then

                min =b

                if min>b then

                min =a

                display min

                display max

end acceptNumbers

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote