Answer to Question #212955 in Java | JSP | JSF for theo

Question #212955

identify the purpose and components of the method represented in the pseudocode below:

num calcAvarage(num total)

declarations

num avarage

set avarage = total/2

return avarage


1
Expert's answer
2021-07-03T04:46:30-0400

The method takes the sum of two numbers and returns the average.

Structure: a numerical variable average is declared, after which it is assigned a half-sum (which is the average for two numbers), after which the variable average is returned by the method.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS