Question 20 6 pts Select the loop control (this should be numbers and remember indexing starts at 0) and the array refer
Posted: Sat May 14, 2022 8:35 pm
any help with this please
Question 20 6 pts Select the loop control (this should be numbers and remember indexing starts at 0) and the array reference which complete the algorithm below. The calcCharges algorithm accumulates the total charges by iterating over the array, charges, which is passed into the module. The charges array is shown below which should provide information on how to set the loop control values for the counted repetition. 5.50 7.25 10.00 4.50 6.75 module: calcCharges (charges) totalCharges = 0 do index = [ Select ] to Select) totalCharges = [Select] totalCharges + enddo prompt "totalCharges = ", totalCharges end calcCharges
Question 20 6 pts Select the loop control (this should be numbers and remember indexing starts at 0) and the array reference which complete the algorithm below. The calcCharges algorithm accumulates the total charges by iterating over the array, charges, which is passed into the module. The charges array is shown below which should provide information on how to set the loop control values for the counted repetition. 5.50 7.25 10.00 4.50 6.75 module: calcCharges (charges) totalCharges = 0 do index = [ Select ] to Select) totalCharges = [Select] totalCharges + enddo prompt "totalCharges = ", totalCharges end calcCharges