Question: (C programming) Write a function to calculate the following function: a) Save the following numbers -1.5, -1, , 100 to X. Calculate the values of
(C programming) Write a function to calculate the following function:

a) Save the following numbers -1.5, -1, , 100 to X. Calculate the values of with the inputs are elements of X and save to array Y.
b) Input an integer (1 n 20). Save the elements of array Y greater than to array Z and print out their sum.
c) Sort array Z in ascending order.
Input Description: An integer n (1 n 20)
Output Description: The first output line contains the sum of elements in array Z. The second line contains the elements of array Z in ascending order.
For example:

cos 4.5x + 5sin (x-1) if x 0 2 Input Result 20 10774.959961 20.155495 20.695219 21.233891 21.771563 22.308283 22.844099 23.379053 23.913189 24.446541 24.979143 25.511030 26.042231 26.572777 27.102692 27.632002 28.160732 28.688904 29.216539 29.743656 30.270277 30.796417 31.322092 31.847322 32.372120 32.896500 33.420475 33.944061 34.467266 34.990108 35.512596 36.034737 36.556545 37.078030 37.599201 38.120064 38.640633 39.160912 39.680912 40.200638 40.720100 41.239304 41.758255 42.276958 42.795425 43.313660 43.831665 44.349453 44.867020 45.384380 45.901531 46.418484 46.935238 47.451797 47.968174 48.484364 49.000378 49.516212 50.031879 50.547375 51.062706 51.577877 52.092892 52.607750 53.122459 53.637016 54.151432 54.665703 55.179836 55.693832 56.207691 56.721420 57.235020 57.748493 58.261845 58.775070 59.288174 59.801163 60.314037 60.826794 61.339443 61.851978 62.364410 62.876732 63.388950 63.901070 64.413086 64.925003 65.436821 65.948540 66.460175 66.971710 67.483154 67.994507 68.505768 69.016953 69.528046 70.039047 70.549973 71.060822 71.571579 72.082260 72.592865 73.103394 73.613846 74.124214 74.634521 75.144745 75.654900 76.164986 76.675003 77.184952 77.694824 78.204636 78.714386 79.224060 79.733681 80.243233 80.752716 81.262146 81.771507 82.280815 82.790062 83.299248 83.808372 84.317444 84.826462 85.335419 85.844322 86.353172 86.861969 87.370705 87.879395 88.388031 88.896622 89.405151 89.913635 90.422073 90.930458 91.438797 91.947090 92.455330 92.963524 93.471672 93.979774 94.487839 94.995850 95.503822 96.011742 96.519623 97.027466 97.535263 98.043015 98.550735 99.058403 99.566040 100.073631 100.581184 101.088692 101.596169 102.103600 102.611000 103.118362 103.625679 104.132965 104.640213 105.147430 105.654610 106.161751 106.668854
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
