Answer:
The Answer for the given question is
First is return(average ) statement is not used in the last line in function average .
second not included the parenthesis in adding the value1 + value2 + value3 so include (value1 + value2 + value3 )
Third is not type casting the value so type cast the value by modify that statement
average = float(value1 + value2 + value3 )/ 3;
Explanation:
In the given code the return type is float that means function should return float value.So adding the statement in the last line return(average ) here all the parameters are of int type but "average" is float type and when an int is divided by int, it will return int value. So we have to type cast either denominator or numerator.
average = float(value1 + value2 + value3 )/ 3;
To define any function definition it must follow the proper syntax of function definition
The syntax is :
Returntype functionname(datatype parameter1,datatype parameter 2)
{
//statement
}
For example
int mux(int a,int b)
{
int c;
c=a*b;
return(c);
}
In this the returntype is integer thats why it return integer value c. If return type is void it will not return any value .
So the correct code is
float average(int value1, int value2, int value3)
{
float average;
average = float(value1 + value2 + value3 )/ 3;
return(average);
}
Answer: less efficient code
Explanation:
When a programmer studies the specifications of a problem, then the programmer can then decide if the solution to the problem will require a nested selection structure or not.
One consequences of writing selection structures to include an unnecessary nested selection structure is that it produces a less efficient code.
Answer:
Encoding
Explanation:
Encoding is the first out of the four steps of turning information into long-term memory in our brain. Encoding involves attending to information, taking it in, and then processing it before we get it into memory. This information is then stored within the brain for later retrieval. When we listen, we pay attention. This attention drives the process of encoding. We can encode information based on various things like, meaning, sound, and visuals.
Click in the Criteria row in the InsuranceType column and type [Enter Insurance Type]. Click the Run button. Type dental when prompted. Click OK.
Option B is the correct answer, Employers have flexibility in choosing a fall protection system they believe will work best in a situation selected. It is the primary duty of employer to provide safety to its workers. Employers must setup a suitable protection system at workplace from falling off from overhead platforms and from elevated workstations during construction for safety of its employees.
Further Explanation:
⦁ Employer must ensure compliance to OSHA-Fall protection in construction.
⦁ Generally, fall protection must be ensured by deploying guardrail systems at the edge of construction sites, safety systems built by nets or personal fall arrest.
⦁ OSHA requires to built fall protection system irrespective of fall distance to make sure safety conditions for workers/ employees.
Answer details:
Grade: High School
Subject: Computer Science and Technology.
Learn More:
Fall protection and compliance to OSHA rules and regulations
brainly.com/question/8910167
Employer responsibility in providing fall protection
brainly.com/question/5872956
Key Words: Fall protection, OSHA, workplace safety, guardrail systems etc.
Image of guardrail as an example is attached.