Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create an PDF or NOTEPAD file that states the purpose in your own words, specify

ID: 3597096 • Letter: C

Question

Create an PDF or NOTEPAD file that states the purpose in your own words, specify input that is needed, expected output, and the step by step process that will obtain the output from the input (the algorithm) for each or the problems below. Also specify test data that can be used to all the scenarios described for each problem. Carefully read the requirements of each. No actual Python code should be used, just use pseudo-code.

Program: Write a process (do not create a program) that would create a function that accepts an list of integer values, a whole number n, and the number of elements in the list. The function should then determine how many values are evenly divisible by whole number n, and return the number of values evenly divisible by n

Explanation / Answer

getEvenlyDivisibleCount(arr, n, size):
count = 0
for i in 0 to size:
if arr[i] is divisble by n (check arr[i] % n):
count = count + 1
return count

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote