Monday, September 4, 2017

29 August '17- Intro to programming

Day 1 began with familiarization of the programming language to be used with arduino.  C Language has been around since the 1970s and was developed by Dennis Ritchie at Bell Labs.  Going over the basic functions on the arduino as well as the most common syntax we'll be running into using C.  Using C we were able to write programs to solve for the distance formula using any distance between two point we entered, here is a screen shot of the code: After successfully writing the program and getting the correct value we modified to accept different x1, x2, y1, y2 values to makes sure the programs still works.

Points (-1,6) (2,4)


Points (1,0) (5,7)


Points (2,4) (2,4)
After adjusting the program to include different point values, we began discussion on using identifiers names and also the rules associated with choosing the right one.  Also being careful to use as much detail in the identifiers as to reference their use in the program.
After break we went on to talk about floating points and how to write in both scientific or exponential  notation.  

No comments:

Post a Comment