Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101winter2015/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/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/feed-rss2.php on line 8
‘#functions’ Articles at Courses by Ken https://kenscourses.com/tc101winter2015 Facilitator of Learning Experiences Mon, 16 Feb 2015 21:59:07 +0000 en hourly 1 https://creativecommons.org/licenses/by/4.0/ #WSQ08 https://kenscourses.com/tc101winter2015/2015/wsq08-3/ Mon, 16 Feb 2015 21:59:07 +0000 http://taniapardo.withknown.com/2015/wsq08 Continue reading →]]>

In this WSQ we had to create and call functions; this is really useful because you can do an action doing different actions and writting the code in a different way.

In this link you can find my c++ code:

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

And here you can see two pictures about my code and the program running:

]]>
https://creativecommons.org/licenses/by/4.0/
WSQ08 https://kenscourses.com/tc101winter2015/2015/wsq08/ Mon, 16 Feb 2015 15:35:34 +0000 http://carlosgreenprograms.withknown.com/2015/wsq08 Continue reading →]]>

.0 

here is my code for wsq08 

<iostream>

using namespace std;

 

int sum(int a, int b) {

return a+b;

}

int diff(int a, int b) {

return a-b;

}

int product(int a, int b) {

return a*b;

}

int div(int a, int b) {

return a/b;

}

int remainder(int a, int b) {

return a%b;

}

int main(){

  int a, b;

  cout <<“enter the first value”<<endl;

  cin>> (a);

  cout <<“enter the second value”<<endl;

  cin>> (b);

 

  cout <<“the sum of the numbers is “<<sum (a,b)<< endl;

  cout <<“the difference of the numbers is “<<diff (a, b)<< endl;

  cout <<“the product of the numbers is “<<product (a, b)<< endl;

  cout <<“the integer divition of the numbers is “<<div (a, b)<< endl;

  cout <<“the remainder of the numbers is “<<remainder (a, b)<< endl;

 

  return 0;

}

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