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
How did the power of the Aztec king compare to that of the other kings in the Triple Alliance?
Free_Kalibri [48]

Answer:

the Aztec king was the most powerful member of the Triple Alliance, making all decisions having to do with war or conquest. And he was much more powerful than the rulers of city-states not belonging to the Triple Alliance.

Explanation:

<em> hope this helped!</em>

6 0
3 years ago
Read 2 more answers
A) Who is Ganesh Man Singh?<br> Anyone please
ValentinkaMS [17]

Explanation:

Hey, there!!

Ganesh man Singh known as "iron mam" is a great politician of Nepal. He was the first person who beganed the party system for the first time in Nepal. He introduced the congress party in Nepal.

He had struggled a lot for democracy of Nepal. He was prisoned for many years too. He was a great Nepali who worked for the democracy of Nepal. He ended constitutional monarchy system in Nepal.

<em><u>Hope</u></em><em><u> </u></em><em><u>it helps</u></em><em><u>.</u></em><em><u>.</u></em>

6 0
4 years ago
Rue or false: the combustion engine is an example of chemical change that many people witness everyday
Tju [1.3M]
True. This is because, in a combustion engine, there is a chemical reaction.
8 0
3 years ago
Read 2 more answers
The Articles of Confederation proved ineffective as a national body of laws for which of the following reasons?
insens350 [35]

Answer:

It's either A or B, but I think B is more suitable.

Explanation:

Reasons for my answers.

A: the A.O.C had only one branch of government, the Congress, and it controlled the military, foreign affairs, and borrowed money.

B: Under the A.O.C, the federal government was weak.

C: The government had no power to impose taxes under the A.O.C.

D. The A.O.C did not prevent individual states from having their own constitution.

6 0
3 years ago
Which political party opposed the Dred Scott decision?
Katen [24]

Answer:

D. The Republican Party.

3 0
3 years ago
Read 2 more answers
Other questions:
  • Lizzie experiences swings between elevated and depressed moods that sometimes disrupt her social and occupational functioning. H
    12·1 answer
  • When was global warming first discovered?
    14·1 answer
  • Sometimes actions by individuals make sense, but when this action is widespread (i.e., becomes collective behavior) it can have
    15·1 answer
  • What explains why most black americans consistently categorized themselves as "black," even though the census bureau estimates t
    14·1 answer
  • How is a trial in ancient Athens different from one today
    13·2 answers
  • Which exception to the warrant requirement arises when a situation requires immediate or unusual actions where the situation doe
    7·1 answer
  • God's world-wide judgment of mankind was: answers: the resurrection the flood the law
    7·1 answer
  • PLEASE HELP! :D<br><br> Match the correct term to the definition. Picture below
    13·2 answers
  • By ____________________ Andy Kirk means, do the (viewers') need engage with this work, or is it entirely voluntary
    13·1 answer
  • What does function suppressed mean on a lottery ticket.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!