Template Activity

Do this as a group effort with others at your table. Ask questions if you need help.

Start with the ReturnRandom project. Add in the Point code you used in Lab 1.

  1. Write code to create an array of 100 points with random x,y coordinates.
  2. Add the 100 points to the ReturnRandom template.
  3. Print out 50 Random points, two at a time. For each pair display:
    1. If they are equal, parallal or perpendictuar
    2. Give the distance between them

Hint – you may use ChatGPT on this activity if wish. Be able to explain your code.

Scroll to Top