Required Skills Inventory • Use variables to name, store, and retrieve values • Write a method according to given specif
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Required Skills Inventory • Use variables to name, store, and retrieve values • Write a method according to given specif
statement • Use math operators to construct an expression • Use an if statement to get the computer to make a decision ● Problem Description and Given Info Write a public static method named DiffMinMax3 that will take three arguments of type int and will return a int. When called, and passed three int values, this method must compute and return the positive difference between the minimum and maximum of the three argument values. Here are some examples of what the method should return for various sets of argument values: DiffMinMax3 (1, 2, 3) DiffMinMax3 (50, 10, 20) DiffMinMax3 (1, 1, 1) DiffMinMax3 (50, 100, 10) should return 2 should return 40 should return 0 should return 90
Required Skills Inventory • Use variables to name, store, and retrieve values • Write a method according to given specifications Write a method that takes arguments and returns a value • Use parameter variables in a method body ● Write a return