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
‘#FunWithNumbers’ Articles at TC101 Fall 2015
Introduction to Programming Python and C++

Tag Archives: #FunWithNumbers

Fun With Numbers!

Today I did a little program where you gave two numbers to it and yo got the sum, rest, product, division an remain.

It was easy once I understood the structure of it, getting help in https://github.com/MiguelAngelCardenas/WSQ03/blob/master/NUMBERS.cpp

Here is my code:

using namespace std;

 

int main() {

 

int num1, num2, sum, rest, prod, D, resid;

 

cout

cin >>num1;

cout

cin>> num2;

 

sum = num1 + num2;

cout

cout

 

rest = num1 – num2;

cout

cout

 

D = num1/num2;

cout

cout

 

resid = num1 % num2;

cout

cout

return 0;

 

}

WSQ03

In order to complete this activty, I had to read the chapter 2 and the beggining of the 4th of our text book, and I had to watch a video on youtube abour how to ask the username to put information into the program.

Here is the link to the youtube video: https://www.youtube.com/watch?v=JKJF0w58svI

To learn how to use GitHub you can watch this video: https://www.youtube.com/watch?v=YQmlksGFZWY

This is the link of my code in GitHub: https://github.com/MiguelAngelCardenas/WSQ03.git

 

What should you work on?

Week #12 and more partial exams for you.

For this week's readings:
C++ (TC1017) should either be looking at support for your project, ImageMagick C++ libraries are a good start.
Python (TC1014) should be finishing chapter 11 (Dictionaries).