Math  /  Algebra

QuestionPseudocode: Output ana Malak Nomaka Order and Output
FIRST LINE OF CODE : input NUMI : input NUM2 : calculate SUM = NUMI + NUM2 : calculate RESULT = SUM / 2 : display RESULT
LAST LINE OF CODE
The code is written to find the average between two numbers. The lines of code are currently out of order. Well done, the code is in the correct order! Determine the codes output if the first number entered is 5 and the second number entered is 10 .
I will let you know when your response is correct.

Studdy Solution
Calculate the output.
- Calculate SUM = NUM1 + NUM2 SUM=5+10=15 \text{SUM} = 5 + 10 = 15
- Calculate RESULT = SUM / 2 RESULT=152=7.5 \text{RESULT} = \frac{15}{2} = 7.5
- Display RESULT
The output of the pseudocode is:
7.5 \boxed{7.5}

View Full Solution - Free
Was this helpful?

Studdy solves anything!

banner

Start learning now

Download Studdy AI Tutor now. Learn with ease and get all help you need to be successful at school.

ParentsInfluencer programContactPolicyTerms
TwitterInstagramFacebookTikTokDiscord