Declaring a method with multiple parameters


1. CheckPoint: Methods with Multiple Parameters

• Resource: Ch. 6 & 8 of Java: How to Program

• Answer the following questions in a Word document. All statements must adhere to the syntax rules of the java programming language as well as the coding conventions outlined for this course in order to earn the full points.

1. In your own words, explain how methods with multiple parameters are declared. Identify two rules that must be adhered to when declaring a method with multiple parameters. 

2. Write the statement(s) necessary to create a method called calculate interest that accepts account balance and interest rate as arguments. This method should calculate the interest by multiplying the two arguments. 
3. Write the statement(s) necessary to call the calculate interest method with an account balance of $2300.00 and an interest rate of 5%. What rule must be adhered to when calling a method with multiple parameters? 

4. Write the statement(s) necessary to declare a method that does not have a return value. How would you call this method in your program?

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Declaring a method with multiple parameters
Reference No:- TGS0122729

Expected delivery within 24 Hours