Answer:
a thing that happens or takes place, especially one of importance.
Answer:
form, place, time, and possession utility
Explanation:
Answer:
Example 1:
def function(num):
print(num*2)
Example 2:
function(5)
num = 2
function(num)
function(3-1)
Explanation:
Given:
See attachment for complete question
To start with Example (1)
def function(num):
print(num*2)
<em>Note that; the above code segment which doubles the parameter, num could have been any other code</em>
<em />
<em>In Example (1), the parameter is num</em>
For example (2):
We can call the function using:
#1. A value:
function(5)
<em>In #1, the argument is 5; a value</em>
#2. A Variable
num = 2
function(num)
<em>In #2, the argument is num; a variable</em>
#3. An Expression
function(3-1)
<em>In #3, the argument is 3-1; an expression</em>
Answer:
Explanation:
The following program was written in Java. It creates a loop that asks the user for numbers. If it can convert it to an integer it accepts it and adds it to the sum variable otherwise it ouputs that it is not a valid number. Once all 10 integers are added it prints the Average of the values entered.
import java.util.ArrayList;
import java.util.Scanner;
class Brainly {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int count = 0;
int sum = 0;
while (count != 10) {
System.out.println("Enter a number: ");
String answer = in.nextLine();
try {
int intAnswer = Integer.parseInt(answer);
sum += intAnswer;
count += 1;
} catch (NumberFormatException e) {
System.out.println("Not a valid number.");
}
}
int average = sum / count;
System.out.println("Average: " + average);
}
}
I’m not sure but if I wouod have to answer it would be 2 or 3