Welcome to AssignmentCache!

PRG/420 Week 5 Java 5.17 LAB: Max magnitude

Availability: In stock

$7.00

Quick Overview

PRG/420 Week 5 Java 5.17 LAB: Max magnitude


Write a method maxMagnitude() with two integer input parameters that returns the largest magnitude value. Use the method in a program that takes two integer inputs, and outputs the largest magnitude value.


Ex: If the inputs are:
5 7
the method returns:
7


Ex: If the inputs are:
-8 -2
the method returns:
-8


Note: The method does not just return the largest value, which for -8 -2 would be -2. Though not necessary, you may use the absolute value built-in math method.


Your program must define and call a method:
public static int maxMagnitude(int userVal1, int userVal2)

PRG420 Week 5 Java 5.17 LAB Max magnitude

Double click on above image to view full picture

Zoom Out
Zoom In

More Views

  • PRG420 Week 5 Java 5.17 LAB Max magnitude
$7.00

Details

PRG/420 Week 5 Java 5.17 LAB: Max magnitude

Write a method maxMagnitude() with two integer input parameters that returns the largest magnitude value. Use the method in a program that takes two integer inputs, and outputs the largest magnitude value.

Ex: If the inputs are:
5 7
the method returns:
7

Ex: If the inputs are:
-8 -2
the method returns:
-8

Note: The method does not just return the largest value, which for -8 -2 would be -2. Though not necessary, you may use the absolute value built-in math method.

Your program must define and call a method:
public static int maxMagnitude(int userVal1, int userVal2)

Additional Information

Special Price $3.00

Product Tags

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

[profiler]
Memory usage: real: 18350080, emalloc: 17918616
Code ProfilerTimeCntEmallocRealMem