Write an interactive program to perform the following tasks in order:
a) Ask user to input an array size that is an integer value ranging from 10 to 20, inclusively
b) Check the validity of user input and ask the user to input again if previous value was invalid
c) Echo users valid input value on the screen
d) Assign array elements with random values (integer ranging from 0 to 100, inclusively)
e) Display array elements in their original order
f) Sort array elements from maximum to minimum
g) Display array elements in sorted order
h) Compute and display the median value of array elements
i) Compute and display the mean value of array elements
j) Compute and display the variance value of array elements
Your program needs to meet the following requirements:
Array elements are assigned with random values that do not repeat among executions
Array sorting is done in a sub-function
Computing median value is done in a sub-function
Computing mean value is done in a sub-function
Computing variance value is done in a sub-function

Note: as a common practice to check input validity when using scanf(), add a while loop right
after a call to scanf() to consume un-read characters (including the newline character n) in
the input buffer. See the following example for usage.

write it all in C language!

For this project, you will practice some of the surface modeling and rendering skills learned in lecture. It is a useful skill to be able to model objects that you find in every day life, so you are tasked with selecting, and modeling one of these objects.

Your model must:

Have reasonable size/form to your selected object by using at least one sketch picture scaled appropriately
Grading will be more lenient on complicated objects (i.e. a car) and more harsh on simple objects (i.e. an eraser)
Incorporate at least one advanced surface modeling element (surface boundary/ filled surface); More features are encouraged
Have accurate colors/textures of your object
Have at least one decal on your object (.png style decals preferred)
At least one camera set up for rendering with a background
Your model does not require:

sketches to be fully constrained
multiple components (i.e. a water bottle and its cap can be one static model, not necessarily an assembly)
To receive full credit, you must upload/submit:

A clear high resolution photo of the object you selected (most smartphone camera’s should work just fine) (10 points)
Your solidworks file (.SLDPRT) that meets all of the above requirements (30 points)
Two different final renders of your object at different views, at a resolution of 1920×1080 (16×9 aspect ratio) in .jpg file formats (10 points)

    Ask the user to input the degree of the polynomial.

    Based on the inputted degree, ask the user to input the different polynomial coefficients.

    Generate a range X of values between  100 and 100.

    Calculate polynomial P(x) for all values of range X. These results should be allocated in a vector P.
    Plot the graph of P(x) in a figure titled Graph of Polynomial.

    P(x) should be plotted in blue.
    The title should be in blue, Font Size 16, Font Weight bold.
    The x-axis should be labelled x-axis in red, Font Size 12, Font Weight bold.
    The y-axis should be labelled y-axis in red, Font Size 12, Font Weight bold.
    The figure should display major and minor grid lines.
    x-axis limits should be set between the first and final roots 2.
    y-axis limits should be set between the extrema 2.

    Find in vector P the indices for which P(x)=0 and the indices at which P(x) sign changes. Based on these indices the root will be determined.
The root must not be determined using any embedded Matlab functions such as fzero, roots, poly, polyval, etc.

    The code should return in the command window the number of roots, and the roots value sorted in ascending orders.