Answer:
/* C Program to rotate matrix by 90 degrees */
#include<stdio.h>
int main()
{
int matrix[100][100];
int m,n,i,j;
printf("Enter row and columns of matrix: ");
scanf("%d%d",&m,&n);
/* Enter m*n array elements */
printf("Enter matrix elements: \n");
for(i=0;i<m;i++)
{
for(j=0;j<n;j++)
{
scanf("%d",&matrix[i][j]);
}
}
/* matrix after the 90 degrees rotation */
printf("Matrix after 90 degrees roration \n");
for(i=0;i<n;i++)
{
for(j=m-1;j>=0;j--)
{
printf("%d ",matrix[j][i]);
}
printf("\n");
}
return 0;
}
A function is a block of organized, reusable code that is used to perform a single, related action. Functions provide better modularity for your application and a high degree of code reusing. ... Different programming languages name them differently, for example, functions, methods, sub-routines, procedures, etc.
Answer:
Explanation:
Since there are six points, the minimum distance from all points would be the centroid of polygon formed by A,B,C,D,E,F
To find the coordinates of centroid of a polygon we use the following formula. Let A be area of the polygon.
where i=1 to N-1 and N=6
A area of the polygon can be found by the following formula
where i=1 to N-1
![A=\frac{1}{2}[ (x_{1} y_{2} -x_{2} y_{1})+ (x_{2} y_{3} -x_{3} y_{2})+(x_{3} y_{4} -x_{4} y_{3})+(x_{4} y_{5} -x_{5} y_{4})+(x_{5} y_{6} -x_{6} y_{5})]](https://tex.z-dn.net/?f=A%3D%5Cfrac%7B1%7D%7B2%7D%5B%20%28x_%7B1%7D%20%20y_%7B2%7D%20-x_%7B2%7D%20%20y_%7B1%7D%29%2B%20%28x_%7B2%7D%20%20y_%7B3%7D%20-x_%7B3%7D%20%20y_%7B2%7D%29%2B%28x_%7B3%7D%20%20y_%7B4%7D%20-x_%7B4%7D%20%20y_%7B3%7D%29%2B%28x_%7B4%7D%20%20y_%7B5%7D%20-x_%7B5%7D%20%20y_%7B4%7D%29%2B%28x_%7B5%7D%20%20y_%7B6%7D%20-x_%7B6%7D%20%20y_%7B5%7D%29%5D)
A=0.5[(20×25 -25×15) +(25×32 -13×25)+(13×21 -4×32)+(4×8 -18×21)+(18×14 -25×8)
A=225.5 miles²
Now putting the value of area in Cx and Cy
![C_{x} =\frac{1}{6A}[ [(x_{1}+x_{2})(x_{1} y_{2} -x_{2} y_{1})]+ [(x_{2}+x_{3})(x_{2} y_{3} -x_{3} y_{2})]+[(x_{3}+x_{4})(x_{3} y_{4} -x_{4} y_{3})]+[(x_{4}+x_{5})(x_{4} y_{5} -x_{5} y_{4})]+[(x_{5}+x_{6})(x_{5} y_{6} -x_{6} y_{5})]]](https://tex.z-dn.net/?f=C_%7Bx%7D%20%3D%5Cfrac%7B1%7D%7B6A%7D%5B%20%5B%28x_%7B1%7D%2Bx_%7B2%7D%29%28x_%7B1%7D%20%20y_%7B2%7D%20-x_%7B2%7D%20%20y_%7B1%7D%29%5D%2B%20%5B%28x_%7B2%7D%2Bx_%7B3%7D%29%28x_%7B2%7D%20%20y_%7B3%7D%20-x_%7B3%7D%20%20y_%7B2%7D%29%5D%2B%5B%28x_%7B3%7D%2Bx_%7B4%7D%29%28x_%7B3%7D%20%20y_%7B4%7D%20-x_%7B4%7D%20%20y_%7B3%7D%29%5D%2B%5B%28x_%7B4%7D%2Bx_%7B5%7D%29%28x_%7B4%7D%20%20y_%7B5%7D%20-x_%7B5%7D%20%20y_%7B4%7D%29%5D%2B%5B%28x_%7B5%7D%2Bx_%7B6%7D%29%28x_%7B5%7D%20%20y_%7B6%7D%20-x_%7B6%7D%20%20y_%7B5%7D%29%5D%5D)
putting the values of x's and y's you will get

For Cy
![C_{y} =\frac{1}{6A}[ [(y_{1}+y_{2})(x_{1} y_{2} -x_{2} y_{1})]+ [(y_{2}+y_{3})(x_{2} y_{3} -x_{3} y_{2})]+[(y_{3}+y_{4})(x_{3} y_{4} -x_{4} y_{3})]+[(y_{4}+y_{5})(x_{4} y_{5} -x_{5} y_{4})]+[(y_{5}+y_{6})(x_{5} y_{6} -x_{6} y_{5})]]](https://tex.z-dn.net/?f=C_%7By%7D%20%3D%5Cfrac%7B1%7D%7B6A%7D%5B%20%5B%28y_%7B1%7D%2By_%7B2%7D%29%28x_%7B1%7D%20%20y_%7B2%7D%20-x_%7B2%7D%20%20y_%7B1%7D%29%5D%2B%20%5B%28y_%7B2%7D%2By_%7B3%7D%29%28x_%7B2%7D%20%20y_%7B3%7D%20-x_%7B3%7D%20%20y_%7B2%7D%29%5D%2B%5B%28y_%7B3%7D%2By_%7B4%7D%29%28x_%7B3%7D%20%20y_%7B4%7D%20-x_%7B4%7D%20%20y_%7B3%7D%29%5D%2B%5B%28y_%7B4%7D%2By_%7B5%7D%29%28x_%7B4%7D%20%20y_%7B5%7D%20-x_%7B5%7D%20%20y_%7B4%7D%29%5D%2B%5B%28y_%7B5%7D%2By_%7B6%7D%29%28x_%7B5%7D%20%20y_%7B6%7D%20-x_%7B6%7D%20%20y_%7B5%7D%29%5D%5D)
putting the values of x's and y's you will get

So coordinates for the fire station should be (15.36,22.55)
Answer:
A bona fide occupational qualification defense
Explanation:
Since the store is for women clothing, the retail may prefer to employ only female to assist the customers. Under a bona fide occupational qualification defense, an employer is allowed to discriminate if a characteristic is a necessity for the performance of the job and for the business. Therefore, the store has a bona fide occupational qualification defense.
Hi! Hope you're having a great day!