Question: The following algorithm computes the average height for a list of basketball player heights. 1. Initialize a variable sum to 0. 2. For each height
The following algorithm computes the average height for a list of basketball player heights. 1. Initialize a variable sum to 0. 2. For each height in the list: 3. Return sum divided by the total number of heights. A D Which building blocks are involved in this algorithm? Choose all answers that apply: B . Convert height from feet & inches format to total inches Add height to sum. Note that there may be multiple answers to this question. X4 Selection Iteration Sequencing None of the above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
