Question: Using kotlin (android studio) to apply: 1) a button that will calculate (using a loop)and display the average of the elements in the array. 2)

 Using kotlin (android studio) to apply: 1) a button that will

Using kotlin (android studio) to apply:

1) a button that will calculate (using a loop)and display the average of the elements in the array. 2) a second button which will find the the minimum and maximum values in the array by also using a loop.

have a button that calculates and displays the average of the elements in the array. The average must be calculated using a loop. For example, if we have entered 4,7,11,12, and 9 , then the average will be: Avg=54+7+11+12+9=8.6 have a button that finds the minimum and maximum values in the array by using a loop. For example, if we again entered 4,7,11,12, and 9 , then the minimum is 4 and the maximum is 9

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!