Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Faculty of Engineering and Information Sciences

CSIT 111 – Programming Fundamentals


Autumn 2022 : Class Work Week 6 –
Question 1
Implement a function that :
Input : - A TwoDArray of Integers and an integer N
Output: it returns for you the numbers of entries in the TwoDarray that are less that the
number N
Example 1 : Input : {{ 5, 8, 9},{12, 5,9}}
N=7
Output : returns 2
Example 2 : Input : {{ 5, 8, 9},{12, 5,9}}
N=10
Output : returns 5

1
Question 2
Implement a function that :
Input A TwoDArray of Integers
Output : returns true if all entries are even
Example 1 : Input : {{ 5, 8, 9},{12, 5,9}}
Output : returns False

Example 2 : Input : {{ 50, 8, 90},{12, 16, 22}}


Output : returns true

You might also like