Programming

Basic Programming

#1. A grade II student is assigned to compute the sum of the two numbers.

Algorithm:
  1. assign number1 as the num1
  2. assign number 2 as the num2
  3. calculate the two number by
  4. adding num1 and num2
  5. read and display the sum






#2. The teacher wants to compute the average grade of the students on their three long exams.

#3. Macky wants to determine the largest number of the two numbers.
  1. assign number1 as the num1
  2. assign number2 as the num2; if num1 is greater than num2; read and display num1
  3. if num1 is greater than num2; read and display num1
#4 Nix wants to determine the smallest number of the three numbers.