Question: Write a function calculateAverage ( ) that prompts the user to input integers repeatedly until the user enters 'stop'.The function calculates and returns the average
Write a function calculateAverage that prompts the user to input integers repeatedly until the user enters 'stop'.The function calculates and returns the average of the valid integers entered. If no valid integers are entered, the function returns
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
