Question: Question 27 2 pts Consider the following code. What is the output in Line 5? 1. MODULE mainO | 2, DECLARE Integer num1-34, num2-26, total
Question 27 2 pts Consider the following code. What is the output in Line 5? 1. MODULE mainO | 2, DECLARE Integer num1-34, num2-26, total = 0 DECLARE Real avg = 0.0 4. CALL calculate(num1, num2, total, avg) 5. DISPLAY "Total is: "total,Average is: ", avg 6. END MODULE 7. MODULE calculate(Integer n1, Integer n2, Integer Ref. sum, Real avg) 8. SET sum-n1 + n2 9. SET avg-sum /2. 10. END MODULE 34, 30.0 26, 0.0 60, 30.0 60,0.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
