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]
4 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]4 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
How many meters per second is 100 meters and 10 seconds
Elden [556K]

Answer:

the velocity = 10 m / sec if an object moves 100 m in 10s

5 0
2 years ago
The controller determines if a(n) _________ exists by calculating the difference between the SP and the PV.
shusha [124]

The controller determines if a(n) error exists by calculating the difference between the SP and the PV.

<h3>How does a controller work in control system?</h3>

The Control system is one where it entails if the output is one that has an effect on the input quantity.

So it uses the PV(Process Variable) set against the SP(Setpoint) to know if an error exists.

So, The controller determines if a(n) error exists by calculating the difference between the SP and the PV.

Learn more about controller from

brainly.com/question/14617664

#SPJ1

7 0
2 years ago
Determine the reactor volume (assume a CSTR activated sludge aerobic reactor at steady state) required to treat 5 MGD of domesti
12345 [234]

Answer:

1.0MG

Explanation:

to solve this problem we use this formula

S₀-S/t = ksx --- (1)

the values have been given as

concentration = S₀ = 250mg

effluent concentration = S= 10mg

value of K = 0.04L/day

x = 3000 mg

when we put these values into this equation,

250-10/t = 0.04x10x3000

240/t = 1200

we cross multiply from this stage

240 = 1200t

t = 240/1200

t = 0.2

remember the question says that 5MGD is required to be treated

so the volume would be

v = 0.2x5

= 1.0 MG

4 0
3 years ago
Write down one metal or alloy that is best suited for each of the following applications:
777dan777 [17]

Answer:

Explanation:

a. Cast iron or Aluminium alloy are typically used. Aluminium is much lighter in weight and it can transfer heat better to the coolant. While Cast Iron is typically stronger and is thus still used by the manufacturers.

b. Copper can be used as a condensing heat exchanger for hot steam due to its optimal thermal properties and its ability to resist corrosion.

c. high-speed steel are perfect for producing drill bits because of its hardness and resistance to heat to an extent. Drill bits tend to produce heat as a result of the friction between it and the material to be drilled.

d. lead can be used as a container for strong acids because of its anti-corrosive properties

e.zinc and copper can be used as fuel in pyrotechnics mainly due to the fact that burn with refreshing colours. Aluminium can also be used.

f. Platinum is the metal that best suits this purpose because of its high melting point and resistivity to oxidation.

6 0
3 years ago
What is a shearing stress? Is there a force resulting from two solids in contact to which is it similar?
Luba_88 [7]

Answer:

Shearing stresses are the stresses generated in any material when a force acts in such a way that it tends to tear off the material.

Generally the above definition is valid at an armature level, in more technical terms shearing stresses are the component of the stresses that act parallel to any plane in a material that is under stress. Shearing stresses are present in a body even if normal forces act on it along the centroidal axis.

Mathematically in a plane AB the shearing stresses are given by

\tau =\frac{Fcos(\theta )}{A}

Yes the shearing force which generates the shearing stresses is similar to frictional force that acts between the 2 surfaces in contact with each other.  

7 0
4 years ago
Other questions:
  • A gear box’s shaft is made of a hollow circular steel tube with allowable yield stress equal to σa????????o???? . The shaft is l
    7·1 answer
  • Stainless steel ball bearings (rho = 8085 kg/m3 and cp = 0.480 kJ/kg·°C) having a diameter of 1.2 cm are to be quenched in water
    10·2 answers
  • The input power for a thermostat is wired to the
    8·1 answer
  • Which type of load is not resisted by a pinned joint? A) Moment B) Shear C) Axial D) Compression
    7·1 answer
  • Water at 20◦C is pumped through 1000 ft of 0.425 ft diameter pipe at a volumetric flowrate of 1 ft3/s through a cast iron pipe t
    14·1 answer
  • If you are involved in a collision and your vehicle is blocking the flow of traffic, you should
    5·1 answer
  • In a movie theater in winter, 510 people, each generation sensible heat at a rate of 80 W, are watching a movie. The heat losses
    11·1 answer
  • Solve the inequality below.Use the drop-down menus to describe the solution and its graph.
    12·1 answer
  • 3. A steel pipe of outside diameter 20 mm and thickness 3 mm is
    14·1 answer
  • Advanced manufacturing does NOT serve the transportation, communications, or medical industries. Is this statement TRUE or FALSE
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!