Tag Archives: #TC101

Quiz 07

Here is my blog for the Quiz 07

Create a function called dot_product that receives two lists of numbers (say list1 and
list2). The function returns what is the dot product of the two lists.

For full marks, if the lists are not the same size, then the function should return the
special value of NaN (which represents not a number). Here is the link to my GitHub.

Captura de pantalla 2016-05-05 a las 12.04.04 a.m..png

Course Review

Me dare la libertad de escribir este blog en español para poder expresarme de una forma más completa.

Quisiera empezar dejando claro que en este curso aprendi muchas cosas de las cuales estoy seguro que van a ser fundamentales a lo largo de mi carrera, las aprendi de una forma u otra, pero en lugar de hacer este blog muy largo y tedioso dare lo que me llevo del curso en general.

Este tipo de curso es muy diferente a los demás, porque aquí tu aprendes bajo tu propia cuenta, si, el Ken va a estar allí contigo para cualquier pregunta que necesites o duda, pero este modelo de curso se basa principalmente en el auto estudio, y en mi opinion personal siento que es algo que enriquece mucho tu aprendizaje y te hace ver los problemas desde una ángulo diferente.

Es una metodología diferente la cual probablemente no estamos preparados en este país, es un curso para las personas entusiastas de aprender y no ser conformistas.

Flipped Classroom Image.jpg

*Me gustaría aclarar que aunque este blog dice que lo subí el día mayo 5, no es así y lo estoy subiendo el 4 de mayo, no se porque hace ese cambio de horario, es igual para mis blogs pasados.

Word count WSQ12

Here is my blog post for the WSQ 12.

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 the link to my GitHub.

 

Captura de pantalla 2016-05-04 a las 11.14.45 p.m..png

Quiz 05

Here is my blog post to my Quiz 05.

  • 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). Here is the link for my link to GitHub.

Captura de pantalla 2016-05-04 a las 10.29.04 p.m..png

  • 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). Here is my code to GitHub.

Captura de pantalla 2016-05-04 a las 10.29.58 p.m..png

Final Project – Sudoku

My partner in this assignment was Antonio (you can find his blog here Atonio’s blog). At first we didn’t know what to do for the project, after weeks thinking about this, we had the idea of doing a project from past courses, so we looked back to the winter course of 2015 (2015 course), and decided to do a sudoku.

Captura de pantalla 2016-05-04 a las 8.42.49 p.m..png

And we found a video of ken explaining a little bit all this stuff, probably is useful.

Basically , we build our code based blog posts from students in that course . Also it was very helpful this website , to understand some concepts and to create the code. This web page was very useful too.
We did this almost all the time separated, so we could not make a video.

These are the specifications:

  • Create a text based version of a Sudoku.
  • Include all the rules and instructions that apply to the game.

As always here are the links for my GitHub, one is for the code and the other si for the text file.

Working with my partner was great, at the beginning we had lack of communication because we didn’t know what to do, but I felt in confidence with Toño because we are friends and honestly it was easy for me, I think without him I couldn’t done this, we both work separated because we have different classes and different schedule, probably he worked more than me, and was hard to find something good, but at the end we looked for information and watched some videos and thats it, we did it. Is an incredible guy and if you need help with something he will help you.

Exam2 WSQ13

Well kind of late but here are my codes from the partial exam,  I will leave links for my codes in Github, hopefully you’ll find useful.

  1. Write a function called triangles which receives a single parameter (int) which represents the size of a triangle. The function should print a triangle using loops (for or while). The only characters printed here are ‘T’ and the new-line character. The first line is length one, the middle line is length size and the last line is length one. Link to GitHub

Captura de pantalla 2016-04-27 a las 9.54.41 p.m..png

  1. Write a function called superpower that has two parameters of type long and returns a long which is first parameter raised to the power of the second, which is to say it returns a^b. Link to GitHub

    Captura de pantalla 2016-04-27 a las 9.59.14 p.m..png 

  2. Write a function called fibonacci which receives a long “n” and returns a long which is the value of the nth number in the fibonacci series which is: 0,1,1,2,3,5,8,13,21,34,55,89…………
    So, fibonacci(0) would return 0. fibonacci(5) would return 5, fibonacci(8) would return 21.
    Note that the first two fibonacci numbers are 0 and 1.
    All others are the sum of the previous two fibonacci numbers. Link to GitHub

    Captura de pantalla 2016-04-27 a las 10.02.25 p.m..png

  1. Write a function called isPalindrome which receives a string “x” and returns true if the string x is a palindrome, otherwise false. Lint to GitHub

    Captura de pantalla 2016-04-27 a las 10.04.27 p.m..png

Sum of numbers WSQ07

Hello my friends, today we are going to do a task that is very similar to the last ones, but a little more difficult, we are going to write a program that ask the user for a range of integer numbers and then prints the sum of the numbers in that range (inclusive).

We can use a formula but thats not the way that we are going to do it, first we have to decelerate variants, and the use “while” and “if”. Here are some grateful videos for your enjoyment.

 

And as always, the link for my code in GitHub and some evidence

Captura de pantalla 2016-02-12 a las 8.42.59 p.m..png

 

 

Pick a number WSQ06

Hi again!! honestly this task was a little difficult, I had to do some research for this WSQ, and i found some great videos that I leave here. The WSQ consist in creating a program  that ask the user a random number between 1 and 100, the user have to guess and the program won’t stop running until you get the right number, but the machine give you hints and the number of attempts.

 

 

Chis is my link for my code, GitHub.

Captura de pantalla 2016-02-11 a las 10.25.22 p.m.