PRG/211 Week 5 Lab 11.5 User-Defined Functions: Max and min numbers

Availability: In stock

Regular Price: $8.00

Special Price: $5.00

OR

PRG211 Week 5 Lab 11.5 User-Defined Functions Max and min numbers Program

Double click on above image to view full picture

Zoom Out
Zoom In

More Views

Quick Overview

PRG/211 Week 5 Lab 11.5 User-Defined Functions: Max and min numbers


Write a program whose inputs are three integers, and whose outputs are the largest of the three values and the smallest of the three values. If the input is 7 15 3, the output is:
largest: 15
smallest: 3


Your program should define and call two functions:
Function LargestNumber(integer num1, integer num2, integer num3) returns integer largestNum
Function SmallestNumber(integer num1, integer num2, integer num3) returns integer smallestNum
The function LargestNumber should return the largest number of the three input values. The function SmallestNumber should return the smallest number of the three input values.

Regular Price: $8.00

Special Price: $5.00

Details

PRG/211 Week 5 Lab 11.5 User-Defined Functions: Max and min numbers

Write a program whose inputs are three integers, and whose outputs are the largest of the three values and the smallest of the three values. If the input is 7 15 3, the output is:
largest: 15
smallest: 3

Your program should define and call two functions:
Function LargestNumber(integer num1, integer num2, integer num3) returns integer largestNum
Function SmallestNumber(integer num1, integer num2, integer num3) returns integer smallestNum
The function LargestNumber should return the largest number of the three input values. The function SmallestNumber should return the smallest number of the three input values.

Additional Information

Special Price $5.00

Product Tags

Use spaces to separate tags. Use single quotes (') for phrases.