Question: please i need s short simple code for both exercises. Exercise 1: You are required to write a method Maximum that takes 3 integers and

please i need s short simple code for both exercises.
please i need s short simple code for both exercises. Exercise 1:

Exercise 1: You are required to write a method Maximum that takes 3 integers and return the highest integer in a class named Statistics. You are required to write a method that takes 4 integers and return the average in the same class. Write a main in another class named Test where you call the method Maximum with parameters 7 and 5 and 10 . Also, call the method Average with parameters 9,5,7 and 10. Read and print the result in the main. Exercise 2: Write a program in Java to display the cube of the number up to a given integer. Example: Input number of terms : 4 Number is: 1 and cube of 1 is : 1 Number is: 2 and cube of 2 is: 8 Number is: 3 and cube of 3 is: 27 Number is: 4 and cube of 4 is: 64

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!