Answer:
import random
numbers = []
even = 0
odd = 0
for i in range(100):
numbers.append(random.randint(1, 200))
for i in range(100):
if numbers[i] % 2 == 0:
even += 1
else:
odd += 1
print("Even:", even)
print("Odd:", odd)
Explanation:
Gg ez.
Answer:
11,424,400 possible passwords
Explanation:
Since all characters are letters and only lowercase
we have 26∧4 = 456,976 possibilities
For a 5-character password which is still lower case sensitive.
we have 26∧5 = 11,881,376 possibilities
Many more possible passwords = (11881376-456976)
= 11,424,400 possible passwords
Answer:
=(A4+B4+C4+D4+E4)/5
Explanation:
If we want to have the average of the passengers, first we must sum all the revenue and then divide it with passenger quantity.
In this particular example, I made the formula with 5 passengers, I sum the 5 revenues and then I divide with 5 passengers if there are more passengers we must sum all of them, and divided all of them, for example:
=(A4+B4+C4+D4+E4+F4)/6
Answer:
void delete_record(student_record *arr, int &size, int age, string name, double gpa) {
int index = -1;
if (arr != NULL && size > 0) {
for (int i = 0; i < size; ++i) {
if (arr[i].age == age && arr[i].name == name && arr[i].gpa == gpa) {
index = i;
break;
}
}
}
if (index != -1) {
for (int i = index; i < size - 1; ++i) {
arr[i] = arr[i + 1];
}
size--;
}
}
The following is not an instance of a character device: <u>mouse sound card.</u>
<h3>What is a char machine?</h3>
Character machines are devices that do not have physically addressable storage media, such as tape purposes or serial ports, where I/O is normally served in a byte stream.
<h3>What are feeling and block devices?</h3>
The block machines access the disk using the system's normal buffering mechanism. The surface devices provide for direct communication between the disk and the user's read or write buffer.
To learn more about Character machines, refer
brainly.com/question/25280941
#SPJ4