Respuesta :
Answer:
Pseudocode
////////////////////////////////////////////////////////////////////////////////////////////////////////////
Integer netElevation(list of elements of type elevation - type and number)
function open
Define running total = 0
for each element from list
loop open
elevation type = element[i].type
if (elevation type == Up)
running total = running total + element[i].number
else
running total = running total - element[i].number
loop close
return running total
function close
In this exercise, using the knowledge of computational language in psudocode, we have that this code will be written as:
The code is in the attached image.
We can write the pseudcode as:
Integer netElevation(list of elements of type elevation - type and number)
function open
Define running total = 0
for each element from list
loop open
elevation type = element[i].type
if (elevation type == Up)
running total = running total + element[i].number
else
running total = running total - element[i].number
loop close
return running total
function close
See more about pseudcode at brainly.com/question/13302316

