1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Sati [7]
3 years ago
13

A programmer wants to write a procedure that calculates the net elevation - total number of feet a traveler goes up and down. Fo

r example, looking at the first 3 segments of travel, the net elevation is 7 feet (up 3, up 1, down 3). Write procedure (in either JavaScript or pseudocode) called processPath(data) that: Accepts a list of elevation data as a parameter For every value in the list Compute the absolute difference between that value and the value next to it on the path Add the difference to a running total Return the total elevation traveled
Computers and Technology
1 answer:
ch4aika [34]3 years ago
3 0

Answer:

Pseudocode

////////////////////////////////////////////////////////////////////////////////////////////////////////////

Integer netElevation(list of elements of type elevation - type and number)

<em>function open</em>

   Define running total = 0

   for each element from list

   <em>loop open</em>

       elevation type = element[i].type

      if (elevation type == Up)

           running total = running total + element[i].number

       else

           running total = running total - element[i].number

   <em>loop close</em>

   return running total

<em>function close</em>

You might be interested in
which responses would you use for a computer or electronic medical record outage? (select all that apply)
kupik [55]

The responses that a person need to use for a computer or electronic medical record outage is option A: Verify computers, printers, and WOWs are plugged into red outlets.

<h3>What are the problems with electronic medical records?</h3>

In regards to  computer or electronic medical record, there are sometimes where there is found to be some outage.

Note that  based on  USF Health, some key healthcare givers and patients can be very concerned in regards to  medical privacies if they are using EHRs.

Note that some of the concerns includes the lost information as a result of a natural disaster as well as cyber hacks.

Hence, The responses that a person need to use for a computer or electronic medical record outage is option A: Verify computers, printers, and WOWs are plugged into red outlets.

Learn more about medical record from

brainly.com/question/21819443

#SPJ1

See full question below

5. Which responses would you use for a computer or electronic medical record outage? (select all that apply)

Verify computers, printers, and WOWs are plugged into red outlets.

Reset equipment, if needed, by turning on and off.

Locate downtime forms and use if directed.

Verify critical patient care equipment is functioning properly.

Refer to downtime computer and printer on unit.

Use red emergency phones.

8 0
2 years ago
Trish has bought a new computer that she plans to start working on after a week. Since Trish has not used computers in the past,
kotegsom [21]
Hello, I am charlespierce576! I believe I might have the answer! Simple policies such as turning of off devices not in use. Also unplugging devices during a storm.
4 0
4 years ago
What happens to an LR if they troll/spam?
Mkey [24]
They have a chance of being blocked
8 0
3 years ago
The Department Manager researches new data platforms for the company and requests a list of essential features. Which essential
Ipatiy [6.2K]

Answer:

Centralisation

dashboard , programmatic access

Explanation:

hope it helps u

mark me as brainlist

4 0
3 years ago
_____ rows indicate that there is different formatting for odd and even rows.
Sladkaya [172]
Banded rows indicate that there are different formatting for odd and even rows.
5 0
3 years ago
Other questions:
  • The groups_per_user function receives a dictionary, which contains group names with the list of users. Users can belong to multi
    11·1 answer
  • What is the full form of the acronym WWW?
    13·2 answers
  • ____________ is a widely accepted international best practices framework for implementing information systems security.
    12·1 answer
  • To remove text from a specific location and keep it to use again, you should select ___
    6·1 answer
  • Normal wear and road conditions can take their toll on a car’s steering and suspension system, altering __________. A. wheel ali
    15·2 answers
  • This type of software works with end users, application software, and computer hardware to handle the majority of technical deta
    12·1 answer
  • Help please
    13·2 answers
  • A company is deploying NAFDs in its office to improve employee productivity when dealing with paperwork. Which of the following
    11·1 answer
  • Where is the third vanishing point in the three point perspective
    8·1 answer
  • A. Get a value for x from the user.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!