Question: Draw a flowchart for the algorithm: a) Build an algorithm that randomly generates N sets of data defining the weight of a five-person car and
Draw a flowchart for the algorithm:
a) Build an algorithm that randomly generates N sets of data defining the weight of a five-person car and the weight of its passengers and luggage.
b) The data are coordinates defining two quadrangle in the plane. Each time (for each quadrangle) there are 4 points P1, P2, P3, P4 on the plane. Points P1, P2 are the ends of the first side of the quadrangle, points P2, P3 of the second side, P3, P4 of the third side and P4, P1 of the fourth side. Build an algorithm to determine whether the quadrangle is a trapezoid or a square.. Assume that the relations can be affected by both linear and angular error.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
