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
m_a_m_a [10]
3 years ago
13

3. Write a program that asks the user to type the coordinate

Computers and Technology
1 answer:
Serhud [2]3 years ago
4 0

<u>Answer: </u>

<em>#include <stdio.h> </em>

<em>#include <math.h> </em>

<em>int main() </em>

<em>{ </em>

<em>float x1, y1, x2, y2, gdistance; </em>

<em>printf("Input x1: "); </em>

<em>scanf("%f", &x1); </em>

<em>printf("Input y1: "); </em>

<em>scanf("%f", &y1); </em>

<em>printf("Input x2: "); </em>

<em>scanf("%f", &x2); </em>

<em>printf("Input y2: "); </em>

<em>scanf("%f", &y2); </em>

<em>gdistance = ((x2-x1)*(x2-x1))+((y2-y1)*(y2-y1)); </em>

<em>printf("Distance between the said points: %.4f", sqrt(gdistance)); </em>

<em>printf("\n"); </em>

<em>return 0; </em>

<em>} </em>

<em>Here we need two coordinates so we need 4 variables namely x1, y1, x2, y2</em> to obtain the input from the user and to calculate distance we need another variable. <em>So finally the result should be printed.</em>

You might be interested in
He smallest network is a ______________________, which is a network of personal devices, such as the network you use when you sy
scoray [572]
<span>The smallest network is a </span>personal area network,<span> which is a network of personal devices, such as the network you use when you sync your cell phone and your computer. </span>personal area network
8 0
3 years ago
What are the methods used in research methodology?
earnstyle [38]
Experiments. ...
Surveys. ...
Questionnaires. ...
Interviews. ...
Case studies. ...
Participant and non-participant observation. ...
Observational trials. ...
Studies using the Delphi method.
5 0
3 years ago
You've applied a filter. What's the best way to see the original data?
scoundrel [369]

The answer to your question is,

D. Toggle Filter. You don't want to remove the filter, you just want to see the difference.

-Mabel <3

5 0
3 years ago
Read 2 more answers
GenXTech is a growing company that develops gaming applications for military simulations and commercial clients. As part of its
ki77a [65]

Answer:

an enterprise architecture

Explanation:

Based on the information provided within the question it can be said that in this scenario it seems that GenXTech is creating an enterprise architecture. This is a blueprint made for a company that illustrates and defines all the finer details regarding the structure and operation of an organization, as well as where the organization should be heading in order to achieve the business goals that have already been set.

6 0
3 years ago
Distinguish between engineering and architecture​
Liula [17]

difference between engineering and architecture are.

A engineer is a person whose job involves designing and building engines, machines, roads, bridges ,etc .

While architect design buildings only.

3 0
3 years ago
Other questions:
  • What type of organizational structure would you want to use for this company (by function, by process, by product, and so on)? E
    11·1 answer
  • In this question, we give two implementations for the function: def intersection_list(lst1, lst2) This function is given two lis
    15·1 answer
  • ________ is a password-cracking method wherein the attacker compares passwords to lists of common words.
    12·1 answer
  • Which of the following attacks seeks to introduce erroneous or malicious entries into a server's hostname-to-IP address cache or
    5·1 answer
  • The goal expressed in this definition states that data visualization is about ________________ .
    11·2 answers
  • Which rotation speed is not a typical spindle rotation speed for magnetic hard drives?3100; 5400; 7200; 10000
    8·1 answer
  • 1.
    9·1 answer
  • Create an online order form for a car rental store and include the following items: input text box to enter the number of days i
    14·1 answer
  • What can i say back to my IT school lady?
    8·1 answer
  • Write a program to demonstrate circular linked list with operations using pointers – insert
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!