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
qaws [65]
3 years ago
10

Write a program to calculate the farthest in each direction that Gracie was located throughout her travels. Add four print state

ments to the lines of code above that output the following, where the number signs are replaced with the correct values from the correct list:
Computers and Technology
1 answer:
zzz [600]3 years ago
5 0

Answer:

If you're given a set of coordinates that Gracie has travelled to, you can find the farthest in each direction with something like this (I'll use pseudocode in lieu of a specified language):

left = right = top = bottom = null

for each location traveled{

    if left == null or location.x < left {

         left = location.x

    }

    if right == null or location.x > right {

         right = location.x

    }

    // note that I'm assuming that the vertical position increases going downward

    if top == null or location.y < top {

          top = location.y

    }

    if bottom == null or location.y > bottom {

          bottom = location.y

    }

}

As for the four print statements and other information, insufficient information is provided to complete that.

You might be interested in
Which structural adaptation would help a plant survive better in a shady environment?
Aleks04 [339]
C. Large Leaves

Explanation:
Large leaves enable the plant to absorb more of the scarce sunlight it recieves, so it can create enough nutrients for it to survive. Plants need sunlight to perform photosynthesis. Photosynthesis is when a plant takes in sunlight and turns it into food for itself.

Hope this helped!!
4 0
3 years ago
Read 2 more answers
WHAT ARE THE RISK OF DUST​
Step2247 [10]

Answer:

over heating

Explanation:

in computers dust acts as a blanket which traps heat, excessive heat causes components to burn up and short out

3 0
3 years ago
What does it mean when it says this person is unavailable on messenger.
arsen [322]

Answer:

The user has a deactivated account 

Explanation:

or the user does not have the account anymore good luck and I hope you do well <3

4 0
2 years ago
If the user inputs “10” for the first expense and “20” for the second expense, what will the interpreter show in the final line
andriy [413]
Yes :) I totally agree with the person above me ^
7 0
3 years ago
Write a class named Car that has the following fields: yearMode1. The yearModel field is an int that holds the car's year model.
Gekata [30.6K]
Skeh wkf ahfmroztdjdy
Dmgk
Ann Write a class named Car that has the following fields: yearMode1. The yearModel field is an int that holds the car's year model. make. The make field is a String object that holds the make of the car, such as "Ford" "Chevrolet", "Honda", etc. speed. The speed field is an int that holds the car's current speed. In addition, the class should have the following methods . Constructor. The constructor should accept the car's year model and make as ments. These values should be assigned to the object's yearModel and make fields. The constructor should also assign 0 to the speed field. Accessor. The appropriate accessor methods get the values stored in an object's yearModel, make, and speed fields. , accelerate. The accelerate method should add 5 to the speed field each time it is called _________. brake. The brake method should subtract 5 from the speed field each time it is called.
8 0
4 years ago
Read 2 more answers
Other questions:
  • ​to add notes or comments, insert a comment tag using the syntax _____.
    5·2 answers
  • Which item is essential to know before sketching a navigation menu flowchart
    15·2 answers
  • After a webcast is completed there are no files left on your computer.
    14·1 answer
  • The file extension for Access 2007 and 2010 database filenames is .accdb. What is the file extension for older versions of Acces
    5·1 answer
  • For example, one might start with a population of 500 organisms, a growth rate of 2, and a growth period to achieve this rate of
    6·1 answer
  • What information and options can be found on the File tab?
    8·1 answer
  • How to jailbreak ios 9.2 ? Is there anyway???!!!!
    12·1 answer
  • If you change the text to bold,you are changing the what?
    9·1 answer
  • /* Write a method called fractionSum that accepts an integer parameter n and
    5·1 answer
  • You're expecting visitors who will be demanding Mamet access Before they arrive, you can activate a Guest network that has its o
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!