Explanation:
The United States created the Environmental Protection Agency. in some ways they have did that
3. 8.1
Looking at the functions "average", and "mystery" it's pretty obvious that "average" returns a double precision average of the value of an integer array. The function "mystery" returns an array of integers with each value in the array being the length of the string in the array of strings passed to "mystery" in the same ordinal position.
The main body of the code initializes an array of strings and then passes that array to "mystery" who's output is then passed into the function "average". Since the lengths of the words passed to "mystery" is 7, 5, 6, 10, 10, 8, 13, 6, 8, 8, the sum will be 81, so the average will be 81/10 = 8.1 which matches option "3".
Answer:
The solution code is written in Python 3
- count = 0
- sum = 0
-
- num = input("Enter a number: ")
-
- while(num != ''):
- sum += float(num)
- count += 1
- num = input("Enter a number: ")
-
- print("Sum : " + str(sum))
- print("Average: " + str(sum / count))
Explanation:
Firstly, we declare two variables count and sum to hold the number of input number and the total of the input number, respectively (Line 1-2)
Next, we prompt user to input the first number (Line 4). While the num is not ' ' (This means it is not "Enter" key), accumulate the num to sum variable and increment count by one (Line 6-8) and then prompt the user to input the next number (Line 9).
At the end, display the sum and average using print function (Line 11 -12).
Answer:
I dont really know
Explanation:
So first you would use your brain for this.
2) you would ask your sibling or freind
3) then parents
4) then teacher
5) AND IF you really dont know, use brainly and hope u dont have idoits like me answer this question
Answer:
COMPUTER: Common Operating Machine Purposely used for Technological and Educational research.
Explanation:
By the way, a computer is not an acronym and is the name of an electronic device.
A computer is a simple machine that we can program for a lot of logical and arithmetic functions, and it executes our work according to our instructions.
in simple words, a computer is an electronic device that makes our work easy, and any computer that has been programmed for some set of works, it performs that task or works quickly and correctly.