Examlex

Solved

For Each of the Following Situations,tell Which Type Loop (While,do-While,or

question 23

Essay

For each of the following situations,tell which type loop (while,do-while,or for)would be best in that situation:
a)Reading a list of an unknown number of homework grades for a single student.
b)Summing a series such as 1 +1/2 +1/(22)+ 1/(23)+ … + 1/(28)
c)Testing a newly coded library function to see how it performs for different values of its arguments.
d)Reading in the number of days of vacation taken by an employee.


Definitions:

Initiating Structure

A leadership behavior that involves the organization and definition of work tasks, establishing clear patterns of organization, communication, and ways of getting tasks done.

Leadership Behavior

The actions, decisions, and mannerisms exhibited by an individual in a leadership position that influence the motivation and performance of others.

Specific

Clearly defined or identified; distinct from others.

Task Behavior

Actions and activities undertaken by individuals or teams in pursuit of achieving specific goals or completing certain duties.

Related Questions