Tag Archives: #WSQ03

Fun with numbers, check =)


Fun with numbers, check =)

Fun with numbers, check =)

I had some problems with the remainder, so I looked into the blog, and the work of my classmates helped =)

WSQ03 Fun with numbers

Aqui esta el WSQ03 donde aprendí como aplicar lo que había aprendido de como imprimir/desplegar un texto y además ya le aumentamos a como calcular una operación que quiera con 2 numeros o más que el usuario introduzca en el programa. Supe como hacer el programa con ayuda del libro y con ayuda de un compañero de clase que ya sabe como hacerlo.

Aquí está el código: https://github.com/fernandoaguirrer/TC1017/blob/master/README.md

 

Fun with numbers #WSQ03

 #TC1014

Okay, this is my first program in python. The code was easy to come up with, but I actually had more trouble running it in the terminal, and after several tries I finally know how to do it.

WSQ03 Basic Operators

c++ CodeI already have m program of sum, difference, product and integer&remainder based division.

 #TC1017

Fun With Numbers WSQ03.

Hello there, it’s bee a while since the last time I took some of my time to put something in here.

 

I’ve realized the WSQ03, called fun with numbers, I made a python program able to calculate and show the results of the sum, difference, division and multiplication of two given numbers.

I found the resources to made this, trough some search on the internet about the use of basic operators in Python.

 

 

Here’s my .py file so you all can take a look 🙂

 

https://www.dropbox.com/s/nig5hr7mo3tnu29/wsq03.py?dl=0

 

Basic operations

Aprovechando esta tarea, también completare las maestrías 01, 02 y 10 Para el curso #TC1014

La #Mastery02, nos servirá para comenzar este pequeño programa.

PASOS:

1) Abrimos el programa “IDLE”

2) En la parte superior izquierda, hay un menú que contiene el botón “File”, al cual daremos clic.

3) Clic en save As.

4) Elije el nombre del archivo pero NO OLVIDES poner la extensión “.py” al final, asi

Fun with Numbers

WSQ03 – Fun With Numbers

Finally !!!

#WSQ03

Fun With Numbers #WSQ03

2 min read

Well, here’s my program Fun With number, I only have to read the chapter 2 of the book “How to think like a computer scientist” by Allen B. Downey. And rember somethings, because it’s very similar to program in C#, at least that I learned last semester.

and here’s the code:

 

<iostream>

using namespace std;

int main(){

 

  int n1,n2,suma,dif,divi,multi,modulo;

 

  cout <<“nGive a number: “;

 

  cin >>n1;

 

  cout<<“nGive another number: “;

 

  cin>>n2;

 

  suma=n1+n2;

 

  dif=n1-n2;

 

  divi=n1/n2;

 

  multi=n1*n2;

 

  modulo=n1%n2;

 

  cout<<“nThe sum of ”  <<n1<<  ” + ” <<n2<< ” = ” <<suma<< endl;

 

  cout<<“nThe difference of ” <<n1<< ” – ” <<n2<< ” = ” <<dif<< endl;

 

  cout<<“nThe division of ” <<n1<< ” / ” <<n2<< ” = ” <<divi<< endl;

 

  cout<<“nThe multiplication of ” <<n1<< ” * ” <<n2<< ” = ” <<multi<< endl;

 

  cout<<“nThe module of ” <<n1<< ” MOD ” <<n2<< ” = ” <<modulo<< endl;

 

 

  return 0;

}

 

 

Program

Learn To Program 2015-01-31 11:50:00

WSQ03
Esta nueva práctica consiste en resolver las operaciones matemáticas básicas (suma, resta, multiplicación, división y módulo)
No es tan difícil como esperaba, pero la clave está en saber el tipo de variables que manejaran los datos. Realicé un video de como elabore la actividad de manera muy rápida, tratando de abarcar todas las partes del problema.
https://www.youtube.com/watch?v=97j1p4gV23Y

**********************
Programa hecho en Python:
**********************
https://gist.githubusercontent.com/A01630323/951f25ca33e3ec02b8ac/raw/0781469638f4a876a804137982fcc7924fa7a853/WSQ03