Answer:
point_dist = math.sqrt((math.pow(x2 - x1, 2) + math.pow(y2 - y1, 2))
Explanation:
The distance formula is the difference of the x coordinates squared, plus the difference of the y coordinates squared, all square rooted. For the general case, it appears you simply need to change how you have written the code.
point_dist = math.sqrt((math.pow(x2 - x1, 2) + math.pow(y2 - y1, 2))
Note, by moving the 2 inside of the pow function, you have provided the second argument that it is requesting.
You were close with your initial attempt, you just had a parenthesis after x1 and y1 when you should not have.
Cheers.
Answer:
Environmental assessments (EAs) are an important component of any civil engineering project. Delgado Engineering has been contracted to design and assess a multibillion-dollar urban rail center in a city, which is divided in the middle by a river. The center will be built on a previously unused island in the center of the river. For each of the four types of civil engineers (construction engineer, geotechnical engineer, structural engineer, transportation engineer), explain why they should be involved in the project—or why they would not be relevant to the project—and what their role would be. Then describe how the EA would proceed, including what might be included in the environmental impact assessment process, such as the use of geographic information systems. Finally, explain what might be in the environmental impact statement or why you think there may be a finding of no significant impact.
Answer:
(Have a great day)
¶Emma Jess¶
Explanation:
Get as far to the right side of the road as possible. Do not cut the across lanes of traffic to performed any turn..
Answer:
a. the base must be more positive than the emitter
Explanation:
A transistor can be defined as a semiconductor component that is used to control the flow of voltage or current and as a gate (switch) for electronic signals. Thus, a transistor allows for the amplification, control and generation of electronic signals in a circuit. The three (3) basic parts of a transistor are; base, emitter and collector.
Basically, there are two (2) main types of transistor and these are;
1. PNP transistor.
2. NPN transistor.
Biasing of a transistor can be defined as the process of providing the controlled amount of direct current (DC) voltage or current conditions so as to enable the transistor amplify the alternating current (AC) input signal correctly.
Hence, to forward bias an NPN transistor, the base must be more positive than the emitter because the majority carriers are electrons which are moved from the n-type region to the p-type region while the minority carriers are holes.
This ultimately implies that, for an NPN transistor to conduct current in milliamps, its base-emitter junction must be forward biased.
Answer:
See explaination
Explanation:
int RED=10; int BLUE=11; int GREEN=12; int BUTTON1=8; int BUTTON2=9; void setup() { pinMode(RED, OUTPUT); pinMode(BLUE, OUTPUT); pinMode(GREEN, OUTPUT); pinMode(BUTTON1, INPUT); pinMode(BUTTON2, OUTPUT); } void loop() { int BTN1_STATE=digitalRead(BUTTON1); int BTN2_STATE=digitalRead(BUTTON2); if(BTN1_STATE==HIGH) { digitalWrite(BLUE, HIGH); delay(1000); // Wait for 1 second digitalWrite(BLUE, LOW); } if(BTN2_STATE==HIGH) { digitalWrite(RED, HIGH); delay(4000); // Wait for 4 seconds digitalWrite(RED, LOW); } if(BTN1_STATE==HIGH && BTN2_STATE==HIGH) { digitalWrite(GREEN, HIGH); delay(2000); // Wait for 2 second digitalWrite(GREEN, LOW); } }