Labs

Lab #1

This is a lab I completed as an intro to coding, specifically with python. The assignment was to complete the “tip calculator” tutorial on CodeAcademy. This exercises steps are detailed below by the screen shots. Each screen shot representing a different step in the tutorial when done correctly.

Tip calc tut ss 1 Tip calc tut ss 2 Tip calc tut ss 3 Tip calc tut ss 4 Tip calc tut ss 5

 

Lab #2

In this lab I was tasked with using my knowledge of functions to create a script that could calculate the price of a vacation.

ss+(2015-09-25+at+08.03.58)ss+(2015-09-25+at+08.04.09)ss+(2015-09-25+at+08.04.16)ss+(2015-09-25+at+08.04.28)ss+(2015-09-25+at+08.04.42)ss+(2015-09-25+at+08.04.48)

Lab #3

In this lab I was tasked with using the turtle module to create different graphics within python. We had to employ different functions to make different outcomes. The screenshot below is of a script I wrote in order to create a graphic that will create a random line, that is a random length, at a random angle.

Turtle blast

 

Lab #4

For this lab we were tasked with using different conditionals and functions to create a Pig Latin translator.

600px-CallofDutyLogo.svg ss+(2015-10-13+at+07.31.52) ss+(2015-10-13+at+07.32.12) ss+(2015-10-13+at+07.32.39) ss+(2015-10-13+at+07.33.00) ss+(2015-10-13+at+07.33.18) ss+(2015-10-13+at+07.33.38) ss+(2015-10-13+at+07.34.03) ss+(2015-10-13+at+07.35.32)

Lab #5

For this lab we were tasked to check whether or not Fermat’s last theorem was correct or not. In order to do this we needed to create a “fruitful function”. We did this by defining two different functions and  to call one the latter one in order to run the entire thing. labs

Lab #6

In this lab I was tasked with using different calls related to strings in python to display the date and time at the date line. We used different operators to manipulate the strings to print what we desired.

UntitledUntitled 2 Untitled 3 Untitled 4 Untitled 5 Untitled 6

Lab #7

In this lab we were tasked with generating a battleship game using “while” loops and several other functions.

ss+(2015-12-01+at+04.42.31)ss+(2015-12-01+at+04.44.35)

Lab #8

In this lab we were tasked with using list and dictionaries to create a shopping list.

ss+(2015-12-01+at+05.19.21) ss+(2015-12-01+at+05.19.34) ss+(2015-12-01+at+05.20.56) ss+(2015-12-01+at+05.21.41) ss+(2015-12-01+at+05.22.19) ss+(2015-12-01+at+05.22.45) ss+(2015-12-01+at+05.23.18) ss+(2015-12-01+at+05.23.36) ss+(2015-12-01+at+05.30.36) ss+(2015-12-01+at+05.30.47) ss+(2015-12-01+at+05.30.53) ss+(2015-12-01+at+05.32.36) ss+(2015-12-01+at+05.32.43) (1)

Lab #9

In this lab we review some of the earlier things we learned such as, iterating dictionaries, list comprehension and more.

ss+(2015-12-26+at+07.02.08) ss+(2015-12-26+at+07.02.19) ss+(2015-12-26+at+07.02.27) ss+(2015-12-26+at+07.02.35)