Question

In: Computer Science

you will be analyzing the cumulative summing, the different number of parameters that can be passed...

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?.

Solutions

Expert Solution

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!


Related Solutions

When are values passed as parameters? a. When parameters are primitives or wrappers b. When parameters...
When are values passed as parameters? a. When parameters are primitives or wrappers b. When parameters are user-defined objects c. When parameters are objects What is the result of a == b? public static void main(String[] args) { int[] a = {1, 2, 3}; int[] b = {1, 2, 3}; } a. True b. False c. Compile Error
How do you Calculate the frequency and cumulative distributions for the number of errors?
How do you Calculate the frequency and cumulative distributions for the number of errors?
As you know a number of States have passed right-to-work laws while a number of States...
As you know a number of States have passed right-to-work laws while a number of States have no right-to-work laws. Discuss the meaning of the term “right-to-work” and pros and cons of “right-to-work”. What problems, if any, do you see in a company workplace in Missouri where the majority of the workers want to belong to the union, but where right-to-work laws allow non-union workers as well?
Write a method that concatenates two strings passed as parameters.    Version #1 - assign to...
Write a method that concatenates two strings passed as parameters.    Version #1 - assign to the 1st parameter the concatenation of both parameters. Perform the concatenation using the + operator. We are assuming reference parameter work that way (they don't).    Version #2 - fine. return the value of the 1st param after concatenating to it the second parameter then.    Version #3 - Let's do it the proper way now, I say. Create a temporary String reference variable...
The fidelity of an audio clip is defined by a number of parameters, including the number...
The fidelity of an audio clip is defined by a number of parameters, including the number of channels (1 or 2), the resolution (8, 16 or 24 bits per sample), and the sampling rate (22050, 44100, or 88200 samples per second). (a) Write a definition for an audioClip class that contains: [02 points] fields for storing the channels, resolution and sampleRate with appropriate visibility; [03 points] setter and getter methods for manipulating these fields, such that the setters methods ensure...
Green Lawn Care is analyzing the replacement of an aging compactor motor. The key parameters of...
Green Lawn Care is analyzing the replacement of an aging compactor motor. The key parameters of the three motors under scrutiny (Small, Medium and Big) are provided below. Parameters Small Medium Big 1. Initial Cost ($) 300,000 425,000 510,000 2. Revenues ($) 200,000 annually 200,000 at EOY1 increasing by 1% annually thereafter 290,000 at EOY1 decreasing by 1% annually thereafter 3. Operating Costs ($) 100,000 at EOY1 decreasing by $2,000 annually thereafter. 110,000 at EOY1 increasing by $500 annually thereafter....
At the time that the ACA was passed, the number of people without health insurance in...
At the time that the ACA was passed, the number of people without health insurance in the United States at any point in time was approximately: Group of answer choices a. 25 million. b. 40 million. c. 50 million. d. 65 million.
Stars can be described using many different parameters: mass, color, temperature, luminosity, radius, single or binary....
Stars can be described using many different parameters: mass, color, temperature, luminosity, radius, single or binary. What are the qualities of the closest stars? What are the qualities of the brightest stars?  Do you think we have a skewed perspective due to what we observe in the night sky? Why/why not?
C# Discussion question Why can reference parameters not be optional parameters? What are the conditions for...
C# Discussion question Why can reference parameters not be optional parameters? What are the conditions for generating ambiguous methods? What arethe differences between mandatory parameters and optional parameters? Explain the use of arguments in reference parameters, output parameters, and parameter arrays. Expalin overloading.
Why can reference parameters not be optional parameters? What are the conditions for generating ambiguous methods?
Why can reference parameters not be optional parameters? What are the conditions for generating ambiguous methods?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT