I don't know what language you want it in but I will write this in Java.
public int isMultiple(int x, int y) {
if (x % y == 0)
return 1;
return 0;
}
The mod function (%) returns 0 iff x divides y.
Feel free to ask me questions!
Answer:
Option (c)
Explanation:
Parallel arrays are those arrays which are used to store some records which needs more than one array to hold a entry but are interrelated and should be accessed by same index number. As they are of different data types so can't be stored as multi-dimensional array or matrix. Then parallel array comes to rescue. For example : Details of a student.
Name, age and ID of a student needs to be stored. So, three arrays can be made and each entry should be accessed by same index number.
def input_values(new_list):
new_list = []
n = int(input('Enter number of values: '))
for i in range(n):
new_list.append(int(input('Enter values: ')))
def is_list_even(new_list):
for i in range(len(new_list)):
if new_list[i]%2!=0:
return False
return True
def is_list_odd(new_list):
for i in range(len(new_list)):
if new_list[i]%2==0:
return False
return True
num=input_values()
if is_list_even(num)==True:
print('all even')
elif is_list_odd(num)==True:
print('all odd')
else:
print('not even or odd')
There are reasons why a statement can be wrong. The option that is a wrong statement is Since 2015, the number of unfilled cybersecurity positions has increased by 10 percent.
<h3>How are many cybersecurity jobs unfilled?</h3>
The U.S. is known to have a high total employed cybersecurity workforce and some that are unfilled positions as reported by Cyber Seek.
Studies has shown that since 2015, the number of unfilled cybersecurity positions has gone up by 50 percent. Such that the total expected rate has been approximated to be at 1.8 million open cybersecurity positions by 2022.
Learn more about cybersecurity from
brainly.com/question/14286078