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
kozerog [31]
3 years ago
8

While writing a program to regulate the speed of a self-driving car, you find that your software sometimes miscalculates the ide

al car speed for city streets to be over 1500 MPH (nearly twice the speed of sound), when it should be approximately 30 MPH. Which of the following strategies would be most efficient to employ in debugging your program?
A) At the very end of the speed calculations, add an additional line of code that divides the calculated speed by 50 so that the program never produces such high speeds
B) After each calculation within your program, insert a temporary statement that displays the most recently calculated value. When running your program, compare the displayed values with the expected values to identify where in the program the error is being introduced.
C) Starting at the end of your program and working backwards, systematically delete each line of code that relates to calculating and re-run the program after each deletion to identify where in the program the error is being introduced
D) Delete all of the code relating to speed calculations and rewrite it again
Social Studies
1 answer:
anygoal [31]3 years ago
3 0

Answer:

A)

Explanation:

The answer would be (A) because if you read the other choices it doesn't make sense. (well to me?)

I'm truly sorry if I got you wrong.

You might be interested in
What responsibility goes along with the right to trial by jury?
Mnenie [13.5K]

Answer:

Responsibility to serve on a jury

7 0
3 years ago
Read 2 more answers
In the Revolutionary War who won back in the days
Romashka [77]
The United States of America won the revolutionary war.
8 0
3 years ago
What does being the chief of the executive branch involve?
Damm [24]

Answer:

Enforcing the law

Explanation:

The chief of the executive branch, or the president, has to enforce the laws to preserve, protect, and defend the constitution.

7 0
3 years ago
Why did both Korea and Japan's attitudes towards contact with the outside world change
dangina [55]
Idk I’d rn end jddbdjbs
6 0
3 years ago
What are the main organs of the digestive system?
MAVERICK [17]

mouth,esophagus,stomach,pancreas,liver,gallbladder,small intestine, large intestine and annus.

5 0
2 years ago
Other questions:
  • What is the power of 10 when 0.00503 is written in scientific notation?
    10·2 answers
  • Which theory listed below assumes that learning takes place as the result of responses to external events, without taking into a
    12·1 answer
  • A communication receiver who is preparing his comment or answer and not really listening to the sender is using jargon. using se
    9·1 answer
  • What is the District of Columbia and where is it located?
    14·2 answers
  • A coach knows which key opens the door to the equipment room, what time the custodians arrive at work, and which company offers
    10·1 answer
  • ​clients' ratings, therapists' ratings, and scores on psychological tests could all be used as measures of
    8·1 answer
  • What are the importance of mt everest and pashupatinath temple​
    13·1 answer
  • What is the process of water moving down through the soil called
    15·2 answers
  • Which of the following best describes the g20? the g20 is an organization of the world’s developing nations. the g20 is an organ
    13·1 answer
  • Please select the word from the list that best fits the definition a group of people who, because of their physical characterist
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!