On to the functions WSQ08

In this problem we need to use functions, I use this website to know how to use it: http://www.cplusplus.com/doc/tutorial/functions/

For doing this program, first I read the post on the website listed above and then I try to run the code like 3 times, before I get it right. After all this trouble to know it works I get done. Here I leave the pictures of the program running:

WQS08-

WQS08

The link to the code is here: https://gist.github.com/batmantec/ea5b00180c06988e72ab

Sum of numbers WSQ07

For this one I actually get a lot of trouble to find out how to make it, because I already know the functions of if and do/while. But for some type of reason I didn’t manage to get it done right. So I ask some of my student partners to if they can explain me how this is suppose to be done. At the end I finally get it right.

Another problem that I faced was the one that it was presented that the sum starter with 0, but I actually need to started in 1 to get it as the example that the teacher give us, that was 1 as the lower and 10 as the upper, and getting 55 as result, but when I started the sum in 0, the program actually give me as result 54, so I change it to 1 so this number was the correct one.

Here are the pictures:

Click to view slideshow.

Here is the code in GitHub:

https://gist.github.com/batmantec/bcec98aea205edcb679c

First Quiz!

The Quiz was made of 3 programs.

You can find the quiz on the following link: http://kenscourses.com/tc101winter2016/wp-content/uploads/2016/01/tc1017quiz1.pdf

The first program was about a program that can calculate the volume of a cylinder, you can see how it run in the following pictures:

Click to view slideshow.

The code for the first program is here:

https://gist.github.com/batmantec/3c0bc660c910ba72653e

The second program was about asking the user for 2 integer numbers and then multiply the, get the integer division, and the remainder of the division, you can see how it run in the following pictures:

Click to view slideshow.

You can find the code in the following link: https://gist.github.com/batmantec/725115330c7a65467d16

And finally the third one was something like the second one, but here we need to use decimal and then add the mathematical operation of sum and rest, but we take out the remainder of the division. Here are the pictures of the program running:

Click to view slideshow.

And the code is in the following link: https://gist.github.com/batmantec/1dc384374e1c16f8813c

 

Flipped Learning #WSQ04

Our teacher present us with 3 lectures, in which show the advantages of the flipped learning method, but I still not completely agree with it, because the way I us too learn to code, or programing in the middle school, was this way, investigating on internet how the language work, my first introduction to programing was PHP language, but I didn’t understand as good as I wanted, because I always feel the need to have a mentor on the way.

I really like the idea to abolish grade, because usually, we as students tend to learn for a moment the info just to pass the exam, not actually getting things done. I actually just learn the info and the erase the data of my brain, but not because I didn’t like it, but because I never get the thing in practice so I think that the info was useless.

The perfect classroom for me is the on e that it have the teaching, teaching you the things you should need to know, and then asking you to develop a code that makes this things, and if you get the code running, just check for optimization of the code so you don’t make the same mistakes.

In conclusion the best way to learn for me, is not having the need to learn the things just to pass an exam, indeed just teach us the tools to make it, and just leave the project for us to develop. So this is the way to get success, like is shown in the picture below.

Grading

Pick a Number #WSQ06

Hello there, for making this program right I did run into many problems, but now is done. I did need to search for the condition of loops that C++ uses and I found out that FOR was the one that works works for me. Here is the link FOR LOOP.

The images of the final program:

Click to view slideshow.

Here is my code link to github:

https://gist.github.com/batmantec/af9e2bff8a77495a3445

Operations with C++

For making the first program using inputs from the user I ask some questions to our teacher Kenneth William and he answered some questions and use some websites as references like:

http://www.cprogramming.com/tutorial/modulus.html

and

http://www.cplusplus.com/doc/tutorial/basic_io/

At the end I ended up with the program running, you can see it at the following

Click to view slideshow.

images.