Functions Java only Instructions For this assignment you will be using functions. You will
Fantastic news! We've Found the answer you've been seeking!
Question:
Functions
Java only
Instructions
For this assignment you will be using functions. You will ask the user to input
some numbers. The user can enter 4 numbers. You will then return if the numbers of it forms a
rectangle or a square (and if so, what is the perimeter). Remember you must use functions.
Sample Run:
Example 1:
Enter side 1
> 5
Enter side 2
> 3
Enter side 3
> 3
Enter side 4
> 5
Forms a rectangle with perimeter of 16
Example 2:
Enter side 1
> 5
Enter side 2
> 5
Enter side 3
> 5
Enter side 4
> 5
Forms a square with perimeter of 20
Example 3:
Enter side 1
> 5
Enter side 2
> 6
Enter side 3
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: