Question
Write pseudocode for a MAIN program and two METHODS. The MAIN program should allow the user to enter two numbers. The MAIN program should pass
Write pseudocode for a MAIN program and two METHODS.
The MAIN program should allow the user to enter two numbers.
The MAIN program should pass these two numbers, as arguments, to a METHOD named LOWEST. The LOWEST method should compare the two numbers it is passed and display the one that is the lowest.
The MAIN program should then pass these two numbers, as arguments, to a METHOD named HIGHEST. The HIGHEST method should compare the two numbers it is passed and return the one that is the highest to the MAIN program. The MAIN program should then display the value that's returned by the HIGHEST method.
Pseudocode for the MAIN program:
Pseudocode for the LOWEST method:
Pseudocode for the HIGHEST method:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started