Fun with numbers, check =)
#WSQ03#TC1017 I had some problems with the remainder, so I looked into the blog, and the work of my classmates helped =)
#WSQ03#TC1017 I had some problems with the remainder, so I looked into the blog, and the work of my classmates helped =)
Comments Off on Fun with numbers, check =)
Posted in Blogs, Syndicated, TC1017 Blogs
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:/
#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.
Comments Off on Fun with numbers #WSQ03
Posted in Blogs, Syndicated, TC1014 Blogs
I already have m program of sum, difference, product and integer&remainder based division.
#WSQ03 #TC1017
Comments Off on WSQ03 Basic Operators
Posted in Blogs, Syndicated, TC1017 Blogs
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:/
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
Comments Off on Basic operations
Posted in Blogs, Syndicated, TC1014 Blogs
Tagged #mastery01, #mastery02, #Mastery10, #TC1014, #WSQ03
Comments Off on WSQ03 – Fun With Numbers
Posted in Blogs, Syndicated, TC1017 Blogs
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. #WSQ03
and here’s the code:
#include <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;
}
Comments Off on Fun With Numbers #WSQ03
Posted in Blogs, Syndicated, TC1017 Blogs
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
Comments Off on Learn To Program 2015-01-31 11:50:00
Posted in Blogs, Syndicated, TC1014 Blogs
Tagged #LearnToProgram, #TC1014, #WSQ03