Assignment on Method2
[void Method with Parameters]
1. Write a Java program using a method called void square(int n) to find the Square of any number.
2. Write a Java program using a method called void cube(int n) to find the Cube of any number.
3. Write a Java program using a method called void product(float a, float b) to find the Product of two numbers.
4. Write a Java program using a method called void division(float a, float b) to find the quotient of two numbers.
5. Write a Java program using a method called void areaOfRectangle(int l, int b) to find the Area of Rectangle.
6. Write a Java program using a method called void areaOfTriangle(float b, float h) to find Area of Triangle.
7. Write a Java program using a method called void areaOfCircle(float r) to find Area of Circle.
8. Write a Java program using a method called void simpleInterest(float p, float r, float t) to find the Simple Interest.
9. Write a Java program using a method called void areaOfRectangle(int l, int b), void perimeterOfRectangle(int l, int b) to find the area and perimeter of Rectangle.
10. Write a Java program using a method called void positiveNegative(int n), void oddOrEven(int n) to find the number is Positive/Negative and Even/Odd.
[Date: 17/03/2026]
[Date of Submission: 20/03/2026]
Assignment 1 on Method1
[void Method without Parameters]
1. Write a Java program using a method called void square() to find the Square of any number.
2. Write a Java program using a method called void cube() to find the Cube of any number.
3. Write a Java program using a method called void product() to find the Product of two number.
4. Write a Java program using a method called void division() to find the quotient of two number.
5. Write a Java program using a method called void square(), void cube() to find the square and cube of any number.
[Date: 12/03/2026]
[Date of Submission: 13/03/2026]