In: Computer Science
you will be analyzing the cumulative summing, the different number of parameters that can be passed to a method, and the design methods with no parameters. Instructions: Answer the following questions:1. Describe how you create and use a method with multiple parameters. 2. Explain what happens when you call a method and the method ends. 3. Discuss the cumulative summing relationship. 4. List the four things you need to know when you call a method from a program or other method. 5. Modularized furniture comes with sections that can be assembled in a variety of configurations. What other everyday items are modularized?.
1)when we using multiple parameters in a program, the method call must have the same number of arguments as there are parameters, and arguments are passed in the same order.
for example, public class hiClass
{
static void myMethod(String fname, int age)
{
System.out.println(fname + " is " + age);
}
public static void main(String[] args)
{
myMethod("George", 14);
}
}
2)when Calling a method in an object also make use dot notation. if the method ends, the program will terminate only when the execution chain is complete.
3)Cumulative sums are used to display the total sum of information as it grows with time.it is simple, efficient for process control, and used to determine time series.
4)In java, Before calling a method, we have to understand what method is.., declare class, declare return value, declare method name, and call the method. add a parameter to the method if you needed then call with parameter.
5)Modularity has benefits such as a reduction in cost, shorter learning time, flexible design, and exclusion. here, computers, cars, process systems, furniture,solar panels,telephone exchanges, pipe organs, electric power systems are the examples of platform systems using different levels of component modularity.
Hope you got the correct answer ...
Please like...Thank you!