Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

intro to java course(please make it as easy as possible to understand) Any help greatly appreciated 1. Implement a method named surface that accepts 3

intro to java course(please make it as easy as possible to understand) Any help greatly appreciated

1. Implement a method named surface that accepts 3 integer parameters named width, length, and depth. It will return the total surface area (6 sides) of the rectangular box it represents.

2. Implement a method named rightTriangle that accepts 2 double arameters named sideA and hypotenuseB. The method will return the length of the third side.

(This next part is a note that is a bit confusing to me)

To test, you should put all of these methods into a MyMethods class and then write an application that will instantiate an instance (object) of that class to use the above methods. It should be obvious that you will need to get the parameters from either the user or through some other means (random number generator) so that when you call (invoke) the method you have the actual parameters to pass along to the method being called. If you do generate numbers have the application print them out so that you know what was generated and given to the method so that the return values can be checked for correctness.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Objects And Databases International Symposium Sophia Antipolis France June 13 2000 Revised Papers Lncs 1944

Authors: Klaus R. Dittrich ,Giovanna Guerrini ,Isabella Merlo ,Marta Oliva ,M. Elena Rodriguez

2001st Edition

3540416641, 978-3540416647

More Books

Students also viewed these Databases questions