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
Serga [27]
3 years ago
7

a triangle is defined by the three vertices. write the following functions of the triangle class assume that the point class has

already been written for you you may add helper functions as needed
Engineering
1 answer:
Fofino [41]3 years ago
3 0

Answer:

The triangle() function is an inbuilt function in p5.js which is used to draw a triangle in a plane. This function accepts three vertices of triangle.

Syntax:

triangle(x1, y1, x2, y2, x3, y3)

Below programs illustrates the triangle() function in p5.js:

function setup() {  

   createCanvas(400, 400);  

}  

 

function draw() {  

   background(220);  

   fill('lightgreen');  

 

   // A triangle at (100, 250), (250, 170) and (330, 300)    

   triangle(100, 250, 250, 170, 330, 300);  

}  

You might be interested in
4. Two technicians are discussing the evaporative emission monitor. Technician A says that serious monitor faults cause a blinki
snow_lady [41]

Answer:

The correct option is;

Neither Technician A nor B

Explanation:

The evaporative emission monitor or Evaporaive Emission Control System EVAP System monitors enables the Power Control Module of the car to check fuel system leak integrity and the vapor consumption efficiency during engine combustion

It is a requirement of EPA on cars to check the emission of smug forming evaporates from cars

Serious monitor faults can cause the turning on of the check engine lights and the vehicle will not pass OBD II test, but it will not lead to engine shutdown

It runs when the engine is 15 to 85% full and the TP sensor is between 9% and 35%.

Therefore, the correct option is that neither Technician A nor B are correct.

3 0
3 years ago
A coal-burning power plant generates electrical power at a rate of 650 megawatts (MW), or 6.50 × 108 J/s. The plant has an overa
Vinvika [58]

Answer:

Energy produce in one year =20.49 x 10¹⁶ J/year

Explanation:

Given that

Plant produce 6.50 × 10⁸ J/s of energy.

It produce  6.50 × 10⁸ J in 1 s.

We know that

1 year = 365 days

1 days = 24 hr

1 hr = 3600 s

1 year = 365 x 24 x 3600 s

1 year = 31536000 s

So energy produce in 1 year = 31536000 x  6.50 × 10⁸ J/year

          Energy produce in one year = 204984 x 10¹² J/year

          Energy produce in one year =20.49 x 10¹⁶ J/year

7 0
3 years ago
Two variables, num_boys and num_girls, hold the number of boys and girls that have registered for an elementary school. The vari
Flauer [41]

Answer:

Using python

num_boys = int(input("Enter number of boys :"))

num_girls = int(input("Enter number of girls :"))

budget = int(input("Enter the number of dollars spent per school year :"))

try:

dollarperstudent = budget/(num_boys+num_girls)

print("Dollar spent per student : "+str(dollarperstudent))#final result

except ZeroDivisionError:

print("unavailable")

3 0
3 years ago
Pedro holds a heavy science book over his head for 10 minutes. Petro is doing work during that time. True or False
algol [13]

Answer:

True because he is working his arms to lift and hold the weight

Explanation:

4 0
3 years ago
Air flows through a 0.25-m-diameter duct. At the inlet the velocity is 300 m/s, and the stagnation temperature is 90°C. If the M
Naddika [18.5K]

Answer:

a. 318.2k

b. 45.2kj

Explanation:

Heat transfer rate to an object is equal to the thermal conductivity of the material the object is made from, multiplied by the surface area in contact, multiplied by the difference in temperature between the two objects, divided by the thickness of the material.

See attachment for detailed analysis

7 0
3 years ago
Other questions:
  • Water flovs in a pipe of diameter 150 mm. The velocity of the water is measured at a certain spot which reflects the average flo
    13·1 answer
  • Psychologist who uses behavioral approach to therapy would probably try which of the following
    13·2 answers
  • Suppose you are implementing a relational employee database, where the database is a list of tuples formed by the names, the pho
    14·1 answer
  • Consider an InSb NW with ballistic mean free path of 150nm. Calculate the current through a 250nm long InSb NW when a 100mV bias
    6·1 answer
  • Under conditions for which the same roojm temperature is mainteined bt a heating or cooling system, it is not uncommon for a per
    10·1 answer
  • The sports car has a weight of 4900 lblb and center of gravity at GG. If it starts from rest it causes the rear wheels to slip a
    13·1 answer
  • For the same cross-sectional area, which column provides the higher buckling load: a circular bar or a circular tube?
    15·1 answer
  • The complexity of bfs and dfs
    11·1 answer
  • A parallel circuit has a resistance of 280 and an inductive reactance of 360 02. What's this circuit's impedance?
    6·1 answer
  • What is the difference between class 1 and class 3 lever?
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!