Quiz Review

¡Ultimo quiz! Numero 8

En este último quiz Ken decidió que hiciéramos un resumen de lo aprendido en el semestre algo que para mí es muy importante y creo que para ken lo es más porque así se puede dar una buena retroalimentación del curso.

Durante el semestre se fueron aprendiendo distintos temas acerca de la programación en c++ algo complicado si no se practica muy seguido, temas como las librerías de c++ algo muy importante ya que si no colocas una librería no funciona tu programa, loops y decisiones if and else y muchos otros problemas.

El trabajo en equipo yo creo que es una de las cosas más importantes en esta materia, anuqué cada quien tiene su forma de programar las personas siempre van a necesitar ayuda y en conjunto se resuelve de una mejor manera.

El modelo de Ken que habla sobre no tener un criterio de evaluación para mi gusto es excelente ya que te puedes medir honestamente la capacidad que tienes, así como las distintas facilidades del curso las cuales no teníamos faltas ni teníamos una fecha de entrega de trabajos.

Este ha sido un excelente curso de programación se aprenden cosas diferentes con cada profesor y siento que Ken tiene una buena idea de lo que el Tec busca como un excelente profesor.

¡Muchas gracias!

Proyecto!

Hora de proyecto,

El día de hoy Julio y yo (Fernando Reyes) vamos a presentar un programa diseñado para medir tu IMC (índice de masa corporal), en este proyecto utilizamos varios de los conceptos que aprendimos en clase asi como personalmente.

El código esta armado directamente con la información de las páginas:

http://www.calculoimc.com/

y con la siguiente formula la cual es una sencilla división entre peso corporal y altura al cuadrado.

IMC

En el programa aparece que des la estatura en cm eso no repercute en nada ya que se modificó dentro del código para que dé correctamente el resultado. Ejemplo: si mides 1.20 mts y lo escribes así, el programa automáticamente convertirá la altura en cms y podrá trabajar correctamente.

Asi se ve el programa terminado.

IMC 2.png

Por ultimo el link del código en Dropbox

Proyecto IMC

FIN

WSQ13 EXAM 2

grammar_quizzes

Se corrigieron los ejercicios del examen parcial numero 2

Parte 1.

EN la parte 1 Ken nos pidió que hiciéramos un triangulo con letras “T”

Aquí esta la primera parte resuelta.

Parte 1

En la segunda parte Ken nos pidió que hiciéramos un programa que elevara los números a una potencia determinada.

Parte 2

En la parte 3 Ken nos pidió que hiciéramos una función de fibonacci.

Ya corregido el programa quedo de esta forma.

Parte 3

 

Quiz 4

Hello this is the quiz number 4 and is the last one for this partial, this quiz was about to crat a euler´s formula to obten the 2.71828 plancing in the code the precision value…

Here are the instructions for the code…

The number e is an important mathematical constant that is the base of the natural logarithm. It is approximately equal to 2.71828,[1] and is the limit of (1 + 1/n)n as n approaches infinity, an expression that arises in the study of compound interest. It can also be calculated as the sum of the infinite series.

I complete this code unitl the finale but is correcto and a good code.

Here is the code…

Quiz 6

Quiz 6

Hello this is the quiz number 6 that include an entertaining code that is about to create a Euclid’s algorithm and this are the instructions, this are the instructions.

  1. Write a function to calculate the greatest common denominator of two positive integers using Euclid’s algorithm.

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.

This page may help https://www.khanacademy.org/computing/computer-science/cryptography/modarithmetic/a/the-euclidean-algorithm

Quiz 6

Thanks see you soon!

Quiz 5

In this quiz Ken tell us to create 2 different programs…

This Quiz Is about to create a program that calculate a polidrome and a function that can add “n” numbers that are divide into 3.

Her are the instruccions…

  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).
  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)

Her are some links that I use to made my program.

http://www.cplusplus.com/reference/string/string/getline/

http://nideaderedes.urlansoft.com/2012/12/14/comprobar-si-una-palabra-es-un-palindromo-en-c/

Here are the links of the codes…

Quiz 5 Primera Parte

Quiz 5 Segunda Parte

Thanks!

 

 

WSQ10 Lists

Hello!

This day we are going to see how to make an array, I think there are the most important part of programming learning, because this can make your code more simply and with less lines of code. Using the arrays, you can place many values in a single variable using loops…

Here is a link that can help you to make arrays inside a function…

Array in a function

Here is the link of the code

WSQ10 Lists

Quiz 3

http://kenscourses.com/tc101winter2016/wp-content/uploads/2016/02/5f4226ab2545bcc2c8b282966faccea3.jpg
http://pinktussy.co/wp-content/uploads/2015/02/PinkSmarties-3-Pic.png

Hello again!

This time is for quiz time!

Quiz #3

In this quiz Ken tell us to create 2 different programs…

The first one is about to create a program that can calculate the distance between two points (x1,y1) and (x2,y2).

Here is the code…

Quiz 3 First Part

For the second part of the quiz it was a little difficult… it was about to create a Fibonacci function.

Here is the code…

Quiz 3 Second Part

Thanks!