Algorithm
Algorithm
Algorithm:
• Read an integer A.
• Display the value of integer A.
Problem: Construct an algorithm to read the three
integers X, Y, Z. Compute the sum of the three integers
then store to variable SUM. Display the result.
Algorithm:
• Read the value of the three integers X, Y, Z.
• Compute the sum using the formula SUM = X+Y+Z.
• Print SUM.
Problem: Create an algorithm that will input values for
A and B. Compare two values inputted and print which
of the values is higher including the remark “Higher”
Algorithm:
• Read A & B
• if A is greater than B then
• Print "A is Higher"
• else Print "B is Higher"
1.Write an algorithm to compute the average of three
input quizzes. Then display the result.
2.ALGORITHM:
• Enter the amount of dollar
• Compute Peso = dollar * 50.60
• Display the equivalent peso
3.ALGORITHM:
• Read Temperature in Celsius
• Compute the F by using the formula f = C 5/9*(F32)
• Print Temperature in F
4.ALGORITHM:
• Read the three number supposed "a","b","c"
• Compute the sum=a+b+c; ave = a+b+c/3; product = a*b*c
• Display “sum “ ,"ave“, and “product”
1.Write an algorithm to compute the average of three
input quizzes. Then display the result.