Tag Archives: #TC

Recursion

21 1017

 

Aqui esta una explicacion de como funciona la recursion 

link: https://www.youtube.com/watch?v=jlTP2iU-NiE

#mastery25 Creation and use of ranges in Python

The range() Function

If you do need to iterate over a sequence of numbers, the built-in function range() comes in handy. It generates lists containing arithmetic progressions, e.g.:

 

>>> range(10)
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

The given end point is never part of the generated list; range(10) generates a list of 10 values, exactly the legal indices for items of a sequence of length 10. It is possible to let the range start at another number, or to specify a different increment (even negative):

 

>>> range(5, 10)
[5, 6, 7, 8, 9]
>>> range(0, 10, 3)
[0, 3, 6, 9]
>>> range(-10, -100, -30)
[-10, -40, -70]

To iterate over the indices of a sequence, combine range() and len() as follows:

 

>>> a = ['Mary', 'had', 'a', 'little', 'lamb']
>>> for i in range(len(a)):
...     print i, a[i]
... 
0 Mary
1 had
2 a
3 little
4 lamb

My example:

x=[‘mastery25′,’tc1014’]

for i in range (len(x)):

     print (“#”,x[i])

>>>25

>>>1014

25

1014

GILBERTO ROGEL GARCÍA

SOURCE: Here

Mastery18

Nesting of conditional statements

If you want to check a condition after a previous condition that was true, then you might want to use nested statements.

Example:

NESTED IF CONSTRUCT

In a nested if construct, you can have an if…elif…else construct inside another if…elif…else construct. The syntax of the nested if…elif…else construct may be:

18 1014

STRINGS

Muchachos es  

1017

  25

 

Aqui les dejo el link de un vdeo en donde explico como funcionan los strings les recomiendo verlo

saludos!

link: https://youtu.be/-ijtj3LbdUM

Proyecto Final

SUDOKU

Aqui esta el codigo principal en github de lo que conllevo hacer todo esto: https://github.com/kenwbauer/EduardoJuan

Pero tambien hay un video para que puedan ver como funciona el juego

Link: https://youtu.be/5y2GwsoUDM8

ASI QUE DISFRUTENLO

1017

Mastery30:: Visualization of data with tools

30

El sistema de datos por herramientas es un software libre, libremente disponible para la realización de gráficos 3D por computadora, procesamiento de imagen y visualización. VTK consiste en una biblioteca de clases de C++ y varias capas de interfaz interpretadas como Tcl/Tk, Java, y Python.

 

“The Visualization Toolkit (VTK) is an open-source, cross-platform, software system for 3D computer graphics, image processing, and visualization. Originally written as companion software to the textbook The Visualization Toolkit: An Object-Oriented Approach to 3D Graphics by Will Schroeder, Ken Martin, and Bill Lorensen, VTK provided the motivation to found Kitware.

From initial development in 1993, VTK has grown to be the premier visualization system today through the support and dedication of a global community. Much of this work has stemmed from Kitware, recently including a transition to using Git and Gerrit for distributed version control; the addition of pointer classes to facilitate pointer management; enhancement of the VTK pipeline to suit AMR; improvements to the plotting and charting capabilities in VTK; and general toolkit maintenance.”(http://www.kitware.com/opensource/vtk.html)

 

1017

#TC1017 #FinalProject

Finalmente terminamos nuestro sudoku,fue dificil hacerlo nos costó mucho trabajo, en la parte que yo me trabe era para que imprimiera el numero otra vez en el tablero una vez que lo ingresaba, a veces nos compilaba bien y otras veces no,fue bueno trabajar con mi compañero fue dificil pero lo logramos. Aqui pueden ver nuestro codigo. Otra dificultad que tuve fue encontrar los codigos de los colores y saber ponerlos.

https://github.com/kenwbauer/OsvaldoFernando/blob/master/Final%20Code

 1017

#Mastery25 #TC1017 https://www.youtube.com/watch?v=aFxJNE-Nb3o

If and Else

Aqui esta un nuevo tutorial para poder saber como utilizar un if y tambien un else como condicionales.

Aqui esta el link: https://youtu.be/dvsp4tkc1Ko

1017

15

16

Creation and use of arrays in C++ #TC1017 #Mastery24

Creation and use of arrays in C++ 1017 24

An array is a data structure, or more technically, a memory that stores a collection of items, all of the same type. Should imagine an array as a contiguous sequence of cells (memory spaces), or squares, each of which can save an item from the collection. Also, it is usual to draw as illustrated by the following figure:

This figure represents an array of seven squares each of which can be used to store a data. The dimension or size of an array is the number of cells that comprise it. It should be clear, then, that the above figure corresponds to an array of dimension 7.

Example of dimension

 

In 2 dimension be like

 

At the beginning I was thinking like how to do a sudoku in this way so here is and example

 

STEPS!!!

  1. Type of Variable
  2. Write array
  3. Name of the array

EXAMPLE:

     float array [A];

In this Code that I did, I wrote some comments explaining what it means each line 

LINKS that I Used to explain and do my WSQ’s and this awesome Mastery 😀

http://dis.unal.edu.co/~programacion/book/modulo3.pdf

https://www.youtube.com/watch?v=gCBpGyKyaGU

http://es.slideshare.net/jhonnyspch/arreglos-c