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
Alenkinab [10]
4 years ago
13

The software for the elevator uses a variable, called level, to track the floor number of the elevator's current position. When

a person presses a button indicating that the elevator should rise to a higher floor, the following goUp procedure is invoked with the desired number of floors to climb provided as a parameter.
What is displayed if the elevator is currently on the 3rd floor (level = 3) and the procedure goUp(3) is invoked?
Computers and Technology
1 answer:
sashaice [31]4 years ago
3 0

Answer:

The elevator will display 6 that is level = 6.

Explanation:

The elevator is currently on the 3rd floor (level = 3). Whenever, the goUp procedure is called, the elevator climbed up based on the number provided as parameter to the goUp procedure.

Since the elevator is already on the 3rd floor and goUp(3) is invoked, it means the elevator will climb to 3 additional floor, which is level 3 + 3 and that gives us level 6.

So, the elevator will display level 6.

You might be interested in
What are some of the challenges that could arise from setting up a file management system on a computer?
kherson [118]
YOU COULD POTTENTIALLY HAVE TO WIPE ALL CURRENT FILES CLEAN OR U MAY HAVE TO PAY FOR CERTAIN PROGRAMS
7 0
4 years ago
Select the correct answer.
Vilka [71]

Answer:

B version number

Explanation:

5 0
3 years ago
The intersection of a row and a column is commonly called what?
Ierofanga [76]
I dont know the answer sorry i just need the points
6 0
3 years ago
Identify the characteristics of syntax errors. Choose all that apply.
kodGreya [7K]

Answer:

Explanation:

Identify the characteristics of syntax errors. Choose all that apply.

programmer did not follow the program language conventions

may be highlighted while writing the program

can be caused by mistyping or misspelling while writing the program

8 0
3 years ago
Read 2 more answers
What would the internet be like today if there was no World Wide Web?
Anvisha [2.4K]

Answer:

Non existent probably

Explanation:

3 0
3 years ago
Other questions:
  • What is heat sink?what is its use?If it is not in the system what will happen?
    12·1 answer
  • 100 students were asked to fill out a form with three survey questions, as follows: H: Honor Roll C: Club membership (Robotics C
    7·1 answer
  • Create a class called Name that will have three fields first name, middle initial, and last name as parameters. Add a constructo
    15·1 answer
  • Help me please and thanks
    8·1 answer
  • What will save you the most money when trying to reduce the cost of college
    5·2 answers
  • What will the following segment of code output?
    7·1 answer
  • Fill in the blanks!
    14·1 answer
  • Can use some help with Computer Networking, with a focus on routing protocols. Part A: Which of these routing protocols is the o
    5·1 answer
  • How many votes does a candidate need to become president of the US ?
    12·2 answers
  • Write a program that prompts the user to input an integer and then outputs both the individual digits of the number and the sum
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!