1. Write a method named secsIn, which accepts three integers, representing a time in hours, minutes and seconds. It should return the total time in seconds. A sample call is:
int totalSecs = secsIn(1, 1, 2); // returns 3662
2. Write a method which returns the area of a solid cylinder. Decide on its parameters. Your method should call areaCircle from above, to assist in calculating the area of the top and bottom. (The circumference of a circle is given by 2 * Math.PI * r.)
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here