Monthly Archives: January 2015

using comments in python

1 min read

to leave comments in python use # for a one line comment 

# comment

for multiline comments use ” ” ” 

“”” comment

    comment

“””

#WSQ04 About me

1 min read

 

Mastery07

1 min read

In this activity we learnt how to use comments. Is useful to know that there are two kinds of comments, if you want to learn more about that, you can find information about C++ comments in this link:

https://msdn.microsoft.com/en-us/library/k1dbk8bw.aspx

In this picture I use comments with the // structure.

And in this other picture I use comments with /*,*/ structure.

I did a pp to teach someone how to use comments, I hope you find it useful, here is the link:

https://drive.google.com/file/d/0B-NM4ghaDXBvUWIxT3RteVpxcmM/view?usp=sharing

#WSQ03 Fun With Numbers

1 min read

//Mauricio Cooper A01630042

<iostream>

using namespace std;

int x,y,s,r,p,d,l;

int main () {

cout << “Dame los dos números para jugarn”;

cout << “Introduzca el primer númeron”;

cin >> x;

cout << “Introduzca el segundo númeron”;

cin >> y;

s=x+y ;

cout << “La suma de los dos números es: ” << s << endl;

r=x-y ;

cout << “La diferencia de los dos números es: ”  << r << endl;

p=x*y ;

cout << “El producto de los dos números es: ”  << p << endl; 

d=x/y ;

cout << “La división de los dos números es: ”  << d << endl;

l=x%y ;

cout << “El residuo de la división de los dos números es: ”  << l << endl;

return 0;

 

}

 

 

 #ninjabanana

Click here if you love the CoCo

Check out the about me page

click HERE or the about me button on the right hand side of the page ——->

Check out the about me page

click HERE or the about me button on the right hand side of the page ——->

Mastery02

1 min read

In this activity we demonstrate to have the ability to create C++ project in IDE and run it inside the IDE.

Using IDE is really useful, because is a program that works like “text edit”, “terminal” and more…

First of all, is important that you have in your computer an IDE program, I installed Xcode because I am Mac user.

This program is really easy to use, basically you only write the code and Xcode compile it and run it, also if you have an error in your code the program lets you know.

Here is a picture that shows my code and the program running inside the IDE.

Also I found useful information in this link:

http://www.cprogramming.com/xcode.html

I did a pp to explain how did I do this activity, here is the link:

https://drive.google.com/file/d/0B-NM4ghaDXBvampmaHNwYXctYmc/view?usp=sharing

#WSQ03 Fun with numbers

Simple math, cool programs:#WSQ03 Fun with numbers

#WSQ03 Fun with numbers

Simple math, cool programs:#WSQ03 Fun with numbers

WSQ03