Course Review

How was this course for me… I like it, because it was different to the others courses that i had this semester. In this course I learned to work by myself and to manage my time to do all the stuff in time because the teacher didn’t teach you anything, to finish the homework you need to searched all the things that you will use on the program (of course if you need help with something the teacher will help you but he never tells you how to do it). I would like to have more courses like this one in the future, for me it’s a better way to learn cause all the things that you learn stay more in your mind because you had a hard time doing it.

https://learningsciences.utexas.edu/teaching/flipping-a-class

Quiz06

Instruction:

The function should receive two integers and return an integer.Obviously you should test your function, so create a main program that asks the user for two values, calculates the gcd and displays that.

 

Here is a link to the code in Github.

Python/Quiz6

Here is a picture of the code:

Quiz6

 

WSQ12 – Word Count

Instruction:

Create a program that asks the user for a word which will be your search word and the name of a file to open and search for that word. Then create a function that will receive two parameters (both string) representing those two data points. This function returns the number of occurrences of that word in that file.

Here is a picture of the code:

WSQ12

 

Here is a link to the code in Github.

Python/WSQ-12 (Word Count)

WSQ11 – Yo soy 196

In this WSQ we need to create a program that asks the user for two pieces of data:

  • The lower bound of the sequence
  • The upper bound of the sequence
Then it check the values from the lower bound (inclusive) to the upper bound (inclusive) and make a report of them. During the analysis of each number, if a Lychrel number is found it should be reported immediately with something like “Found a Lychrel number: 196”
Here is a link to the code in Github.
Python/WSQ-11(Palindromes)
This one is the most difficult of the WSQ and i had a lot of problems iterating them and comparing them.

WSQ10 – Lists

This is the WSQ where we need to create a program that ask for 10 numbers and it needs to store it in a list. The program need to show the total, the average and the standard deviation of those numbers.

For this program I used the math library to calculate the square root for the standard deviation.

Here is a picture of the code.

WSQ10

Here is the code running on cygwin.

WSQ10Cyg

Here is the link to the code in Github.

Python/WSQ-10 (Lists)