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
The white owner of an apartment complex who refuses to rent
deff fn [24]

Answer:

Discrimination

Explanation:

Discrimination is making a distinction against a person or thing based on the group, class or category they belong to, rather than basing any action on individual merit. A simple distinction between prejudice and discrimination is that prejudice is to do with attitude, discrimination is to do with action.

5 0
2 years ago
The cabinet of the president exists MAINLY to
krek1111 [17]

Answer:

The President

Explanation:

Established in Article II, Section 2 of the Constitution, the Cabinet's role is to advise the President on any subject he may require relating to the duties of each member's respective office. The tradition of the Cabinet dates back to the beginnings of the Presidency itself.

6 0
3 years ago
Read 2 more answers
How do scholars know that the Indus Civilization probably had sea-going vessels?
eduard

Answer:

Evidence of seals and other objects in other regions.

Explanation:

Archaeologists have played a vital role in finding past by excavating for artifacts. The presence of sea-going vessels in the Indus Valley civilization indicates the artifacts that have found different civilizations like Mesopotamia and China. Some of the goods traded like beads,  pearls, gold, silver, terracotta pots, turquoise, lapis lazuli, metals, flints, and seashells.  

4 0
3 years ago
The case mentions that Uber’s valuation has recently dropped. If a manager at Uber is tracking the company’s performance and com
Citrus2011 [14]

Answer:

B.controlling

Explanation:

The case mentions that Uber’s valuation has recently dropped. If a manager at Uber is tracking the company’s performance and comparing it to goals, this person would be performing the controlling managerial function.

The controlling function is important in management, it helps in measuring the progress towards the organizational goals and brings any deviations and suggest any corrective action that will help in attaining the companies goals.

7 0
4 years ago
Is the Rocky mountains the main mountain range in the east
-Dominant- [34]
Yes because they were the highest mountains.
7 0
3 years ago
Read 2 more answers
Other questions:
  • What was the purpose of the Spanish missions in new Spain
    13·1 answer
  • The ______ is a joint legislative committee that provides research support, information, and bill-drafting assistance to legisla
    7·1 answer
  • A researcher conducting behavioral research collects individually identifiable sensitive information about illicit drug use and
    9·1 answer
  • Anna has never enjoyed giving speeches, so when she is assigned an informative speech in her public speaking course, she immedia
    10·2 answers
  • A student begins a research project on conurbations. What should the student look for?
    6·1 answer
  • Although the American Psychological Association (APA) has the primary responsibility for accrediting Ph.D. or Psy.D. psychology
    6·1 answer
  • An African tribesperson examining a drawing of elephants interprets one elephant as much smaller than a second. By contrast, an
    10·1 answer
  • What can you contribute to his school? Please Help ASAP
    6·1 answer
  • What are the 5 pillars of Islam.
    15·2 answers
  • theodore roosevelt’s ""speak softly and carry a big stick"" policy relied on the united states having a
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!