Question: using java please i need answers HELL write a method that takes an integer and prints its factorial. A factorial of a ELIS number is

using java please i need answers
 using java please i need answers HELL write a method that
takes an integer and prints its factorial. A factorial of a ELIS

HELL write a method that takes an integer and prints its factorial. A factorial of a ELIS number is the product of that number and all integer below it. (41 = 4*3*2*1 - 24). ON 5. Write a method that takes a string and then reverses it. (eg. "Data Structures!" -> MiserutcurtS ataD" 6. Write a method that takes two arrays of integers (same size) and returns an array that holds their sum MINI Create a new java project that has the following classes: -color: String +getArea().double Triangle -radius: double Rectangle -width double height double getArea) double +getArea() dout th: double height double getArea( double a) Add setters and getters to the variables in all classes b) Override the method getArea() with the corresponding calculations: circle area = pi + r? rectangle area = wih w.h triangle area = 2 c) Create a main class that has and array of Shape objects (3 objects) from the different shapes, with the following data: Shape 1 - circle: Color: blue; Radius: 5 Shape 2 - rectangle: Color: red; Width: 10; Height: 5: iii. Shape 3 - triangle: Color: yellow; Width: 4; Height: 8; d) Using a for loop, go through all the shapes in the array and print the color, type, and area of the shape. (e.g. "I'm a blue circle and my area = 78.539816")

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!