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
anyanavicka [17]
3 years ago
13

Ask the user for five-coordinate pairs. Store each pair as a tuple, and store all the pairs in a list. Print the slope between a

djacent coordinate pairs. So, if you end up with a list of coordinate pairs like this:
[(1, 2), (2, 3), (-3, 3), (0, 0), (2, 6)]
… then your program should print the following slopes:

Slope between (1, 2) and (2, 3): 1.0
Slope between (2, 3) and (-3, 3): 0.0
Slope between (-3, 3) and (0, 0): -1.0
Slope between (0, 0) and (2, 6): 3.0
You’ll need to pack the two values you retrieve from the user into a tuple.

As you go through your pairs of tuples, you can also unpack the variables in them into x1, y1, x2, and y2. That way, computing the slope is as simple as:

slope = (y2 - y1) / (x2 - x1)
Computers and Technology
1 answer:
Margaret [11]3 years ago
8 0

Answer:

y=(1/2) x+3

Explanation:

You might be interested in
“is available for...”. PLS HELP ASAP I DONT HAVE TIME
frutty [35]

Answer:

icloud for the first one

7 0
3 years ago
Modify songVerse to play "The Name Game" (OxfordDictionaries), by replacing "(Name)" with userName but without the first letter.
xenn [34]

Answer:

The Java code for the problem is given below.

Your solution goes here is replaced/modified by the statement in bold font below

Explanation:

import java.util.Scanner;

public class NameSong {

   public static void main(String[] args) {

       Scanner scnr = new Scanner(System.in);

       String userName;

       String songVerse;

       userName = scnr.nextLine();

       userName = userName.substring(1);

       songVerse = scnr.nextLine();

      songVerse = songVerse.replace("(Name)", userName);

       System.out.println(songVerse);

   }

}

3 0
4 years ago
A character with a point size of 10 is about 10/72 of one inch in height. <br> a. True<br> b. False
spayn [35]
<span>The answer to the question stated above is:
A character with a point size of 10 is about 10/72 of one inch in height. This statement is true.
</span><span>
>>>Point size </span><span>is a graphics directive that specifies which points which follow are to be shown if possible as circular regions with diameter</span>
6 0
3 years ago
Transmission Control Protocol (TCP) arrives out of order. What allows the data to be put back together in the correct order?
Reptile [31]

Answer:

Reliability feature in transport layer ensures correct order.

Explanation:

TCP (Transmission Control Protocol) is a communication protocol over network. TCP has a layered architecture and transport layer controls the data transmitted arrives in correct form. This is called reliability feature.

Control data header at transport layer ensures correct delivery. It tracks the transmitted data and re-transmits in case of en error.

7 0
3 years ago
Read 2 more answers
What is the waterproof fabric placed on your camera
andriy [413]
Rain covers is the answer but can specify if its a photography camera or a smartphone camera but if it's a photography camera then it's called rain cover

5 0
3 years ago
Other questions:
  • Which of the following is an encryption tool that allows users to encrypt files and folders by simply right-clicking a given obj
    8·1 answer
  • What are tags?
    13·1 answer
  • George writes code for word processing applications. He is looking for a new job opportunity. What position should George look f
    5·2 answers
  • _____ computing refers to a computing environment that is always present, can feel our surroundings, and-based on who we are, wh
    8·1 answer
  • Al and Bill are arguing about the performance of their sorting algorithms. Al claims that his O(N log N)-time algorithm is alway
    13·1 answer
  • Define a method printFeetInchShort, with int parameters numFeet and numInches, that prints using ' and " shorthand. End with a n
    10·1 answer
  • The one who will defeat me in this typing race I will mark him/her brainliest
    10·1 answer
  • Hi, I am from India. Our brainly platform isn't so good, many of 'em keep spamming questions that I ask. US platform seems much
    9·1 answer
  • Identify the programmer’s responsibility in maximizing the programs reliability by having awareness of the beneficial and harmfu
    8·1 answer
  • The History feature of a browser enables you to retrace your browsing history over a short period of time. (1 point) True False
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!