CSC 171 - Introduction to Computer Programming

Lab Assignment #15 - Maximum and Minimum Values

Due Monday, November 6, 2023

Write two functions findMax(x, y) , which returns the larger of the two values, and findMin(x, y) , which returns the smaller of the two values.

Write a main method that accepts two inputs, and then calls the two methods. It should print the results of both functions.

Your submission should include basic pseudocode for the program and both functions.

[Back to the Lab Assignment List]