Please discuss the importance of providing parameters to
methods and describe how a parameter is declared within a method
header. Give examples.
Please describe the features of methods, including the number
of methods permitted in a program, method naming rules, the
composition of a method, and variable scope rules. Please give an
example of each one.
Declare and define a function named
getCurrentHours_OR_Month that accepts
one Boolean parameter. If the Boolean parameter is true, the
function returns
current hours; if the Boolean parameter is false, the function
returns current month.
o This function will obtain the current system time and extract the
hours or the
month value from the system time depending on the Boolean
being
received.
o This function will return the extracted value as an integer
value.
o Note that the system time displays...
Discuss the importance of sampling, and articulate how sampling
is related to parameter estimation. Provide practical examples that
support your arguments (e.g. examples of how appropriate sampling
can provide better parameter estimates for your population you are
studying).