Answer: Desire method: This is one of the unique but most effective teaching strategies to grab student attention and...
Active learning: The one sided lecture methods are no more fruitful to get the interest of the new generation...
Cooperative learning: Give them a chance to come out of their seats
Explanation:
Using the computer language in JAVA to write a function code that output numbers in reverse
<h3>Writting the code in JAVA:</h3>
<em>import java.util.Scanner;</em>
<em>public class LabProgram {</em>
<em> public static void main(String[] args) {</em>
<em> Scanner scnr = new Scanner(System.in);</em>
<em> int[] userList = new int[20];</em>
<em> int numElements;</em>
<em> numElements = scnr.nextInt();</em>
<em> for (int i = 0; i < numElements; ++i) {</em>
<em> userList[i] = scnr.nextInt();</em>
<em> }</em>
<em> for (int i = numElements - 1; i >= 0; --i) {</em>
<em> System.out.print(userList[i] + " ");</em>
<em> }</em>
<em> System.out.println();</em>
<em> }</em>
<em>}</em>
See more about JAVA at brainly.com/question/12975450
#SPJ1
The answer for Apex College and Career Prep 2 would be Probable College.
Answer:
def display_factors(num):
for counter in range(1, num+1):
if num % counter == 0:
print(counter)
int_num= int(input("Enter a number : "))
print("The factors for {} are : ".format(int_num))
display_factors(int_num)
Explanation:
The function display_factors is used to display all factors of a number entered by a user.
- In this for counter in range(1, num+1) the for loop is iterated until counter is greater to num is false. Counter variable starts from 1 and ends when it gets greater than the input number.
- if num % counter == 0: In this statement, each loop iteration, checks whether a number (num) is exactly divisible by counter. It is the condition for counter to be a factor of num.
- print(counter) This is used to display factors of an input number
- int_num= int(input("Enter a number : ")) This statement asks user to enter a number (int_num) which will be an integer.
- display_factors(int_num) This calls display_factors number to find the factors of an input number.
A part of a computer program that performs a well-defined task is known as an algorithm<span>. A collection of computer programs, </span>libraries<span> and related </span>data<span> are referred to as </span>software<span>. Computer programs may be categorized along functional lines, such as </span>application software<span> or </span>system software and running