Answer:
#include <stdio.h>
#include <limits.h>
/* Define the number of times you are going
to ask the user for input. This allows you
to customize the program later and avoids the
hard coding of values in your code */
#define NUMVALS 5
int main(void)
{
int i = 0;
int curval = 0;
/* Set your initial max as low as possible */
int maxval = INT_MIN;
/* Set your initial min as high as possible */
int minval = INT_MAX;
/* Loop through and ask the user for the defined
number of values */
for (i = 0; i < NUMVALS; i++)
{
/* Ask the user for the next value */
printf("Enter the next value: ");
/* Get the next value from the user */
scanf("%d", &curval);
/* Check to see if this is our biggest or
smallest value yet */
if (curval > maxval)maxval = curval;
if (curval < minval)minval = curval;
}
/* Output the results */
printf("The smallest value entered was: %d \n", minval);
printf("The largest value entered was: %d \n", maxval);
/* End the program */
return 0;
}
Explanation:
<span>A directional antenna issues wireless signals along a(n) outward direction.</span>
Answer:
Find the explanation below.
Explanation:
The six leadership styles described by Daniel Goleman are the;
1. Authoritative: This is applied when the leader wants to motivate a team to achieve greater heights. For example, in a group where the leader expects his team members to complete a project at a specific time, he comes up with an idea of how they can meet the goal. He tells the group excitedly about this idea. The group in turn now shares this same excitement and gets to work applying the new ideas.
2. Coaching: This is used by the leader to encourage employees who lack motivation. Imagine that an employee known to be efficient at his work is finding it difficult to reach a sales goal. The leader observes this and encourages him, showing him better ways to improve his sales skills. He applies the idea and gets better at his job.
3. Affiliative: The affiliative leader seeks to resolve conflict by connecting people and building their spirits. In a case where the team members are feeling downcast because their well-loved boss is transferred to another branch, the new affiliative leader builds their spirit and helps them get back to work.
4. Democratic: This is needed when the leader seeks opinions from his subordinates. If the company is seeking to make changes to be at par with a competitor, the democratic leader welcomes a variety of opinions from his subordinates on new ways to improve their products and services.
5. Pacesetting: This type of leader leads the way and shows good example. After the leader has shown the group new ways to improve their sales, he applies the same approach in his marketing and has significant results.
6. Coercive: The leader applies this with difficult employees. In a situation whereby an employee has been encouraged on how to improve his skills but he still shows no much improvement, the coercive leader authoritatively tells him to make the needed effort since his job is on line. He shows signs of improvement and the leader uses lighter measures to calm his fears.
Answer:
The <input> HTML element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent. The <input> element is one of the most powerful and complex in all of HTML due to the sheer number of combinations of input types and attributes.
Explanation:
Answer:
you select the element you wish to animate