Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php on line 152

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/feed-rss2.php on line 8
‘#WSQ03’ Articles at TC101 Fall 2015 https://kenscourses.com/tc101fall2015 Introduction to Programming Python and C++ Mon, 05 Oct 2015 22:33:01 +0000 en hourly 1 https://creativecommons.org/licenses/by/4.0/ WSQ03 https://kenscourses.com/tc101fall2015/2015/wsq03-23/ Mon, 05 Oct 2015 22:33:01 +0000 http://alansprogramming.wordpress.com/?p=57 Continue reading WSQ03 ]]> We’re now going to have lots of fun with numbers!

Numbers

“Magic numbers” by Emily Harrison. Link: https://www.flickr.com/photos/eeekkgirl/3614817763/

This is the preamble for functions, so it is a very important task to know what we’re doing here for future works. The code is shown here below, where we defining the variables before the main function, while making the calculations in the main function.

WSQ3

Then we compile it on Cygwin to check for any mistakes… since it doesn’t have any, we give the program the values 13 and 5, just for fun.

WSQ3 cyg

And run it to see how well it does its job!

WSQ3 cygrun

]]>
https://creativecommons.org/licenses/by/4.0/
WSQ03 https://kenscourses.com/tc101fall2015/2015/wsq03-24/ Mon, 05 Oct 2015 22:33:01 +0000 http://alansprogramming.wordpress.com/?p=57 Continue reading WSQ03 ]]> We’re now going to have lots of fun with numbers!

Numbers

“Magic numbers” by Emily Harrison. Link: https://www.flickr.com/photos/eeekkgirl/3614817763/

This is the preamble for functions, so it is a very important task to know what we’re doing here for future works. The code is shown here below, where we defining the variables before the main function, while making the calculations in the main function.

WSQ3

Then we compile it on Cygwin to check for any mistakes… since it doesn’t have any, we give the program the values 13 and 5, just for fun.

WSQ3 cyg

And run it to see how well it does its job!

WSQ3 cygrun

]]>
https://creativecommons.org/licenses/by/4.0/
WSQ03 https://kenscourses.com/tc101fall2015/2015/wsq03-25/ Mon, 05 Oct 2015 22:33:01 +0000 https://alansprogramming.wordpress.com/?p=57 Continue reading WSQ03 ]]> We’re now going to have lots of fun with numbers!

Numbers

“Magic numbers” by Emily Harrison. Link: https://www.flickr.com/photos/eeekkgirl/3614817763/

This is the preamble for functions, so it is a very important task to know what we’re doing here for future works. The code is shown here below, where we defining the variables before the main function, while making the calculations in the main function.

WSQ3

Then we compile it on Cygwin to check for any mistakes… since it doesn’t have any, we give the program the values 13 and 5, just for fun.

WSQ3 cyg

And run it to see how well it does its job!

WSQ3 cygrun

]]>
https://creativecommons.org/licenses/by/4.0/
#WSQ03 Fun with numbers https://kenscourses.com/tc101fall2015/2015/wsq03-fun-with-numbers-13/ Fri, 18 Sep 2015 17:57:33 +0000 http://giorgio6859.wordpress.com/?p=15 ]]> 6622082789_0246a74c60_o

Para hacer este código me apoyé en el libro y aparte me explicaron algunos amigos las dudas que tuve, sobre todo con la sintaxis.

Mi código es este:

// WSQ03 Basic math
#include <iostream>
using namespace std;
int main() {
int x;
int y;
cout <<“Dame el primer número ” <<endl;
cin >>(x);
cout <<“Dame el segundo número ” <<endl;
cin >>(y);
cout <<“La suma es ” <<(x+y) <<endl;
cout <<“La resta es ” <<(x-y) <<endl;
cout <<“La división es ” <<(x/y) <<endl;
cout <<“El rsiduo de la división es ” <<(x%y) <<endl;
return 0; }

]]>
https://creativecommons.org/licenses/by/4.0/
Fun With Numbers https://kenscourses.com/tc101fall2015/2015/fun-with-numbers-11/ Fri, 18 Sep 2015 03:47:00 +0000 http://kenscourses.com/tc101fall2015/?guid=2d4ada7ad4b148348556ccf5eae6c419 This is the code for a program that gives you the sum, substraction, mutiplication and division of to number given by the user.

This is the code of the program:

And this is how it looks ike when you run it:

]]>
https://creativecommons.org/licenses/by/4.0/
#WSQ03 https://kenscourses.com/tc101fall2015/2015/wsq03-21/ Fri, 18 Sep 2015 03:22:27 +0000 http://alan46bc.wordpress.com/?p=21 ]]> Basically what I did was to give to integers and then give them a value which will interact with the other.

#include <iostream>
using namespace std;

int main (){
int x;
int y;
cout << “Introduce un numeron”;
cin >> x;
cout << “Introduce otro numeron”;
cin >> y;
cout << “El resultado de la suma es= ” << x+y <<“n”;
cout << “El resultado de la resta es= ” << x-y <<“n”;
cout << “El resultado de la division es= ” << x/y <<“n”;
cout << “El residuo de la division es= ” << x%y <<“n”;
return 0;
}

This is the program.

I only read and with that I could do this program.

George V

https://www.flickr.com/photos/carspotter/

]]>
https://creativecommons.org/licenses/by/4.0/
Fun with numbers https://kenscourses.com/tc101fall2015/2015/fun-with-numbers-12/ Fri, 18 Sep 2015 00:50:11 +0000 http://fernyalanis.wordpress.com/?p=28 ]]> #include <iostream>

using namespace std;

int main()
{
int a,b,c,d,f,g;
cout << “Dime número A” << endl;
cin >> a;
cout << “Dime número B” << endl;
cin >> b;
c = a + b;
d = a * b;
f = a/b;
g = a%b;

cout << “El resultado son los siguientes” << endl << c << endl << d << endl << f << endl << g;
return 0;
}

]]>
https://creativecommons.org/licenses/by/4.0/
WSQ03, Having fun with numbers https://kenscourses.com/tc101fall2015/2015/wsq03-having-fun-with-numbers/ Thu, 17 Sep 2015 19:36:12 +0000 http://hrglez.wordpress.com/?p=99 ]]> Here I am going to show you how I done the WSQ03. It is call “Fun with numbers”, and it is about making simple functions. I know, best day ever.

So here I’ll put an image about my program, and the I explain it:

wsq03

Gaze at the program, try to understand it and then read this:

First of all, I ask the user to enter two integer values, because that is what I need to run  the program.

Then (look at the program), I make some functions, like the sum, the difference, the product, the division and the last one, have a “%” sign, this means that the value that is going to be returned is the residual of the integer division of the two numbers (the first one over the second one).

Then I print the values on screen, in order to our user to see them, and also put a little explanation of what that value represents, because there is no point in just print numbers, no one would know from where they come from.

Okay… I think this is all for this one. If anyone have questions about how to done it, feel free to ask me.

The code for this WSQ is over here: https://github.com/hrglez/TC1017/blob/master/WSQ03%20-%20Numbers

]]>
https://creativecommons.org/licenses/by/4.0/
WSQ03 – Fun With Numbers https://kenscourses.com/tc101fall2015/2015/wsq03-fun-with-numbers-12/ Tue, 15 Sep 2015 13:52:29 +0000 http://dragv.wordpress.com/?p=46 This program is pretty simple. It asks the user to give it two integers and returns the multiplication, sum, subtraction, and integer division of the two integers.

Screenshot from 2015-09-15 08:47:10 Screenshot from 2015-09-15 08:47:28

]]>
https://creativecommons.org/licenses/by/4.0/
WSQ03 https://kenscourses.com/tc101fall2015/2015/wsq03-18/ Mon, 14 Sep 2015 14:11:05 +0000 http://estebanpg.wordpress.com/?p=12 https://github.com/estebanpinal/WSQ/blob/master/WSQ03

]]>
https://creativecommons.org/licenses/by/4.0/