Here is the link to GitHub:
https://github.com/tonygarciavz/A01630861-TC1017/blob/master/sumsquares_list
22 Thursday Oct 2015
Here is the link to GitHub:
https://github.com/tonygarciavz/A01630861-TC1017/blob/master/sumsquares_list
18 Sunday Oct 2015
Done!
Here are my two questions answered. In the first, it says that we had to do a function called fibonacci, and in the second one, a function called isPalindrome, in which I made two codes that you can find in GitHub as isPalindrome1 & isPalindrome2, in the first, it yields a “True” or “False” text if the word the user put is palindrome, in the second code it return a 1 (true) or a 0 (false) corresponding at the conditional if.
fibonacci function:
isPalindrome1:
isPalindrome2:
Codes on GitHub: https://github.com/tonygarciavz/A01630861-TC1017.git
I found a lot of help in this vid: https://www.youtube.com/watch?v=97Q5NxUGTq4
09 Friday Oct 2015
In this WSQ we go on to functions in a easy way. I came back to #WSQ03 to use only thae main programme prints to show the results of the operations between the numbers that are asked to the user.
This is a programme easy to do. The function of each operation returns the value calculated in only one line, that means that I did not use loops in the functions.
I found help in Ken’s lecture yesterday. When I did this WSQ, I was already done with WSQ09, so this was literally nothing on that WSQ.
This page also helped me: http://aprendecpp.com/blog/programacion-en-c-como-crear-funciones-i.html
Here are the codes in GitHub: https://github.com/tonygarciavz/A01630861-TC1017.git
09 Friday Oct 2015
In this code, we tried to make a factorial calcultor. It was easy, I made a function and I put it inside a DO WHILE loop, the type of the function was long, it returned the factorial of the number that the user gives, this value was also long. At the end of the operation, the program asks to the user if he wants to calculate another number’s factorial, while his option is yes (y), the program will ask again for another number.
Here is a source where I found help: http://es.ccm.net/forum/affich-1284727-sacar-el-factorial-de-un-numero-con-c
Here is the link to GitHub: https://github.com/tonygarciavz/A01630861-TC1017.git
09 Friday Oct 2015
Well, after try a lot of times compiling different codes, I finally got it.
Make functions on c++ is easy and difficult at the same time, even though there are a lot of ways of make functions, not all of them are correct.
I found a lot of help in Ken’s class, he teached us 3 different ways to make a correct function, and also explained what does mean every single string in it.
This is a source I found helpful: https://sites.google.com/site/morganbeltrandiaz/the-team
Read the book, it is always a good way to learn something new.
Function called “superpower”…
And the function called “stars”…
You can also find those codes here: https://github.com/tonygarciavz/A01630861-TC1017.git