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
Temka [501]
4 years ago
9

Two cars A and B leave an intersection at the same time. Car A travels west at an average speed of x miles per hour and car B tr

avels south at an average speed of y miles per hour. Write a program that prompts the user to enter the average speed of both the cars and the elapsed time (in hours and minutes) and outputs the (shortest) distance between the cars.
Engineering
1 answer:
svet-max [94.6K]4 years ago
7 0

Answer:

Distance between A & B, dAB, is hypotenus.

dAB²=dA²+dB²

A'=70 mph, B'=55mph, (convert t to hours)

dA=A'•t, dB=B'•t

dAB=√((70t)²+(55t)²)

Explanation:

Distance between A & B, dAB, is hypotenus.

dAB²=dA²+dB²

A'=70 mph, B'=55mph, (convert t to hours)

dA=A'•t, dB=B'•t

dAB=√((70t)²+(55t)²)

You might be interested in
Explain 3 ways that people in sports use engineering to increase their performance?
LenKa [72]
Designing systems for manufacturing, motion analysis or impact testing;
building and testing prototypes;
analyzing the human body to prevent injury;
developing or designing new light weight materials that will be more comfortable and withstand greater impacts or forces;
7 0
3 years ago
How many watts are consumed in a circuit having a power factor of 0. 2 if the input is 100 vac at 4 amperes?.
Anna71 [15]

The watts that are consumed is 80 watts.

<h3>What power factor?</h3>

The term power factor has to do with the measure of the efficiency of the use of energy. Recall that power is defined as the rate of doing work. The magnitude of the power factor shows the extent to which the power is used.

Now, to obtain the watts are consumed in a circuit having a power factor of 0. 2 if the input is 100 vac at 4 amperes we have;  V × I × PF = 100V × 4A × 0.2 = 80 watts.

Learn more about power factor:brainly.com/question/10634193

#SPJ4

6 0
2 years ago
Which kind of fracture (ductile or brittle) is associated with each of the two crack propagation mechanisms?
Nina [5.8K]

dutile is the correct answer

6 0
3 years ago
(40 points) Program the following sorting algorithms: InsertionSort, MergeSort, and QuickSort. There are 9 test les uploaded for
babunello [35]

Answer:

Explanation:

MERGE SORT

#include<stdlib.h>

#include<stdio.h>

#include<string.h>

void merge(int arr[], int l, int m, int r)

{

int i, j, k;

int n1 = m - l + 1;

int n2 = r - m;

 

int L[n1], R[n2];

for (i = 0; i < n1; i++)

L[i] = arr[l + i];

for (j = 0; j < n2; j++)

R[j] = arr[m + 1+ j];

i = 0;

j = 0;

k = l;

while (i < n1 && j < n2)

{

if (L[i] <= R[j])

{

arr[k] = L[i];

i++;

}

else

{

arr[k] = R[j];

j++;

}

k++;

}

while (i < n1)

{

arr[k] = L[i];

i++;

k++;

}

while (j < n2)

{

arr[k] = R[j];

j++;

k++;

}

}

void mergeSort(int arr[], int l, int r)

{

if (l < r)

{

int m = l+(r-l)/2;

mergeSort(arr, l, m);

mergeSort(arr, m+1, r);

merge(arr, l, m, r);

}

}

void printArray(int A[], int size)

{

int i;

for (i=0; i < size; i++)

printf("%d ", A[i]);

printf("\n");

}

int main()

{

int arr[1000] = {0};

int arr_size =0;

int data;

char file1[20];

strcpy(file1,"data.txt");

FILE *fp;

fp = fopen(file1,"r+");

if (fp == NULL) // if file not opened return error

{

perror("Unable to open file");

return -1;

}

else

{

fscanf (fp, "%d", &data);    

arr[arr_size]=data;

arr_size++;

while (!feof (fp))

{  

fscanf (fp, "%d", &data);  

arr[arr_size]=data;

arr_size++;    

}

}

printf("Given array is \n");

printArray(arr, arr_size);

mergeSort(arr, 0, arr_size - 1);

printf("\nSorted array Using MERGE SORT is \n");

printArray(arr, arr_size);

return 0;

}

3 0
3 years ago
Why is it called field effect transistor​
Mrac [35]

Answer:

The field-effect transistor (FET) is a type of transistor which uses an electric field to control the flow of current.

FET is named field effect transistor as field effect is producing, but in BJT also field effect will produce. :)

5 0
3 years ago
Other questions:
  • 1. Create a class called Name that represents a person's name. The class should have fields named firstName representing the per
    8·2 answers
  • What instrument is used to measure temperature?
    10·1 answer
  • Write a static method named fixSpacing that accepts a Scanner representing a file as a parameter and writes that file's text to
    5·1 answer
  • Explain why different types of equipment are required for proper conditioning of air
    7·1 answer
  • "Mass burn technology uses unprocessed municipal solid waste to generate heat which is used to produce electricity."
    9·2 answers
  • Affordability is most concerned with:
    8·1 answer
  • Which of the following is NOT part of a car's drive train?
    10·2 answers
  • What was a campaign belief in the 1980 presidential election? Carter called for a stronger national defense. Carter promised to
    7·2 answers
  • Software that is released to have users test out the "bugs" is known as Ransomeware O Break-in software 2 O Flim flam software O
    15·1 answer
  • 1. A cylindrical casting is 0.3 m in diameter and 0.5 m in length. Another casting has the same metal is rectangular in cross-se
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!