🅰 ⚫ 🅱

In this WSQ we had to create a function called dot_product that receives two lists of numbers. The function returns what is the dot product of the two lists.

This are some screenshots of my program in the terminal and atom.

Captura de pantalla 2016-05-11 a las 6.45.31 p.m.
Captura de pantalla 2016-05-11 a las 6.45.17 p.m.


and my link to github as always 👉https://github.com/mfcanov/Quiz07.git


(Credit goes to http://www.qmed.com/mpmn/gallery/image/engineering-life-chose-me)

Class Review

Well guys, the semester is ending (thank God) and we needed to do a Review of the class. I made a video for this, and here is the link.

The objective of my project is to furnish and facilitate the user the problem of not knowing the lenght and/or angle of an object in an image and give it to them in known dimensions.

Talking about the angles:

  1. The first attempt was with the slope equation which they give tou you a point (x1,y1) and a slope “m”, and have to plug it into the formula : y-y1=m(x-x1), but it was really confusing.
  2. Second attempt after being explained by another student we chose to do it with vectors.
  3. We added dot product.


Talking about lenghts :

After doing several experiments we realized that the best distance from where we should take the picture was from two meters away from the object, and using a camera with a 2448 x 3264 pixeles resolution.

Here are some pictures of the code and ran in the terminal:

Captura de pantalla 2016-05-05 a las 12.50.17 a.m.Captura de pantalla 2016-05-05 a las 12.50.32 a.m.Captura de pantalla 2016-05-05 a las 12.52.10 a.m.Captura de pantalla 2016-05-05 a las 12.53.21 a.m.

and the link to the code in GitHub.


Word, word, word…


(Credit goes to http://www.metamorphoselit.com/2016/02/7-submission-slush-sins-revealed.html)

This WSQ was about 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.

I have help from my students I really  liked the post of a classmate you can find it here.

And my code in GitHub.

YO SOY 1⃣9⃣6⃣!

After wanting to kill myself several times I finally finished the WSQ11 that was about:

Your jobs is 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 you 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”
A friend that took TC101 last semester told me that she suffered to but she recommended a Ken’s video for Big Integer.
Here is my code in GitHub.

Another one? Yes 💀

Quiz 05 was about

  1. Create a function called is_palindrome which receives a string as a parameter and returns true if that string is a palindrome, false otherwise. Remember that a palindrome is a word that is the same forward or backward. For full points your function must ignore case and must work with any character (not just letters). So (“Dad$dad” is a palindrome even though the D is capital and d is lower case).


Captura de pantalla 2016-04-07 a las 8.35.02 p.m.


2. Create a function called find_threes that receives as a parameter a list (or Vector or array for C++ students) of numbers and returns the sum of all numbers in that list that are evenly divisible by 3. Note if using vectors, you will need an additional parameter to represent the number of numbers in the array. So if the list was [0,4,2,6,9,8,3,12], the function would return 30 (0+6+9+3+12)

Captura de pantalla 2016-04-07 a las 8.58.07 p.m.

To do this quiz I had to read my classmates quizzes and asked for help to a friend that already have done this last semester.

Anyway those are the screenshots for each one.

And here are both codes.




Quiz 04

  • This quiz was about creating a function called euler_calc with a single parameter precision. The value of precision is used to determine when to stop calculating. Your calculation will stop when the two consecutive values estimating “e”differ by less than precision.
  • I research about the Euler’s number here because I didn’t know what exactly was it.
  • My code and ran in the terminal
Captura de pantalla 2016-04-07 a las 7.43.37 p.m.
—————–>My code in GitHub<——————