Author Archives: Carolina Romo

Mstery12:: Create and use of function

Las funciones nos ayudan mucho para facilitar la programacion, ya que nos simplifica el codigo y hace mas facil la reutilizacion del mismo procedimiento o funcion. Los tres pasos principales serian 

1.- Se programa la funcion 

2.- Se define la funcion

3.-Se utiliza esta en la funcion principal 

El programa que realize para ejemplificar esta mastery es el siguiente:

Mastery09:: Basic types and their use in c++

VARIABLES

Existen varios tipos de variables, y cada uno corresponde a un tamaño máximo de un número, un carácter o incluso una verdad. Cuanto mayor sea el número que pueda admitir, mas espacio en memoria ocupará.

TIPOS DE VALORES 

Existen varios tipos de variables, y cada uno corresponde a un tamaño máximo de un número, un carácter o incluso una verdad. Cuanto mayor sea el número que pueda admitir, mas espacio en memoria ocupará. 

**Bool:  1 byte de memoria, valores: true o false. 

**Char:  1 byte de memoria, permite almacenar un carácter, valores; 256 caracteres. 

**Int: 4 bytes de memoria, valores: de -2 147 483 648 a 2 147 483 647. 

**Double: 8 bytes de memoria, valores: de 2.2e-308 a 3.4e-38. 

**Float: 4 bytes de memoria, valores: de 1.2e-308 a 3.4e-38. 

**String: permite almacenar cadena de caracteres

 

DECLARACION Y ASIGNACION
Para declarar una variable, basta con indicar su tipo y su nombre. Existen ciertas convenciones en cuanto al nombre de las variables. Algunos prefieren separar las partes de un nombre con ‘_’, otros prefieren escribir una mayúscula para separarlas. Ejemplo: 
int primerNumero;
int primer_numero
ASIGNA UN VALOR 
Es posible asignar un valor a una variable al momento de declararla: 
int numero =  20; 
También es posible declarar varias variables en una misma línea, pero en este caso, todas las variables de la línea tendrán el mismo tipo. 
int numero_uno = 23, numero_dos = 45;

09

1017

Mastery08:: Coding Conventions

08 

1017 

En esta mastery explicare como realizar un programa tanto esteticamente como funcionalmente, ya que para tener un buen programa, no solo debe ser por que te gusta ati si no que en ciertos casos toca presentarlo al publico y debe ser legible y entendible tanto para ti como para los demas. 

Debe estar bien organizado como por ejemplo:

   Principalmente, tenemos la identación ya que esta nos clasifica cada punto importante y los diferentes tipos de elementos que maneja nuestro codigo como puede ser los library, las declaraaciones, los std etc. Un ejemplo             podria ser cuando manejas condiciones al poner las llaves es necesario aumentar la sangria en el renglon para marcar que se encuentra dentro de la misma y saber distinguir que abarca cada cosa. 

   Otro punto bastante importante es el de comentar con “//” estos simbolos, ya que a veces es muy largo nuestro codigo y necesitamos saber que hacemos en cada paso y pues es la manera mas facil de hacerlos y asi podemos identificar mas facil si tenemos algun error y corregirlo.

   Declarar variables por separado por tipo y con espacio para no confundirnos. 

 

    Todos estas caracteristicas los podemos encontrar en el programa de nuestro proyecto final: https://github.com/kenwbauer/CarlosCarolina/blob/master/sudoku.cpp

 

 

How To be succesful in Ken’s class

Bonussss:: well i make a video and explain it all just see it here…

1017

Mastery06:: How to Install Linux (Tutorial)

06

1017

Steps

1: The best way to do it, i to install a virtual box, i use Oracle VM VirtualBox  and it functions perfectly , Click here to download…

 

2:: When its installed, you need to also download here.. the Linux image

 

3:: Next you need to create your VirtualBox, that is in the page in the left-up-side.

 

4:: Follow that step,  you need to name it and choose the operative system that you want to install and then  Choose how lenght do you want it to be

 

5:: Select the option “Create the disk now”.

 

6:: you have two options the first is if you want to save it in a external disk select VMDK option or if you want to keep it in your laptop select VDI option.

 

7:: Select the option “Improve this translation” to make intall it faster.

 

8:: Choose the capacity for your virtua disk and where do you want to save it. Next push Create 

 

9:: When you have your VirtualBox created, Select Start green button and then we browse the download file directory.

 

10:: Finally it gonna be installed and a new system gonna be iniciate, you need to configurate it and now you have Linux

 

Mastery 02: IDE c++ project

Well, i make a video explaining how to intall an IDE, mm i search about what was the easiest ide program to use an i found that is the Code::Blocks so i make a tutorial showing how do i do it hope it helps…..

1017 

02

Click here to see the video

 

ECOS Capture

Done!! 1017

WSQ17 SciLab

The last one!! like it

Quite interesting program !!!

WSQ16 Cars!!

I finally finish the cars program it was quite because this one use a diffrent logic to only get one part of the line an convert it to double but i finally got it wohoo!!

My Github program

WSQ15 FinalDash

 

My goals for the last week is to finish my masteries and the last two WSQs and finally get prepared for final exams, i think everything is almost ready! 🙂