Program One

This program asked us to take 2 points on the cartesian plane and print the distance in between those points.
I used the formula for distance for two points which is:

distance-between-two-points-formula.jpg

And this was the resultCapture

Here’s the source code.

Program Two

For this program, we had to make the Fibonacci series for the n number (which is a parameter), and print the nth number of the series. For this program I had a little help from my friend Luis.

For example the 8th number of the series is 21.

Capture

Here’s the source code.

CC BY 4.0 QUIZ #07 by davidg2897 is licensed under a Creative Commons Attribution 4.0 International License.