Question: In C program, 100% rate. A human pyramid is a formation of people where participants make a horizontal row along the ground, and then additional

In C program, 100% rate.
A human pyramid is a formation of people where participants make a horizontal row along the ground, and then additional rows of people climb on top of their backs. Each row contains 1 person fewer than the row below it. The top row has a single person in it. The image below depicts a human pyramid with four rows. Bcforc you decide to participate in onc of thesc, you may want to know how much weight you will be supporting DE G HU Write a recursive program to compute the weight being supported by the knees of a given person in the human pyramid. We will define the weight on a given person Ps knees recursively to be P's own weight, plus half of the weight on the knees of cach of the two people directly above P. For cxample, in the pyramid figurc at right, the weight on the knces of person I bclow is I's own weight, plus half of the weight on the knees of persons E and F The weight on the knees of persons E and F can be computed recursively using the same process; for example, the weight on the knees of person E is E's own weight, plus half of the weight on the knees of person B, plus half of the weight on the knees of person C. If a given person does not have two people directly above them, any "blank" or "missing" persons should be ignored. For example, the weight on the knees of person F in the figure at right is F's own weight, plus half of the weight on the knees of person C. No truncation/rounding of the result should be done during any of these recursive calculations Sample output How many people are on the bottom row? 4 Each person's own weight: 51.18 55.90 131.25 69.05 133.66 132.82 53.43 139.61 134.06 121.63 Weight on each person's knees 51.18 81.49 156.84 109.80 252.82 211.24 108.32 320.92 366.09 227.25 Grading: Comments Functioning code Recursive implementation Well-written code Correct results, ordered output Full submission 5 points 10 points 12 points 8 points 10 points 3 points
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
