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

Tag Archives: #252525

Quiz 07

This quiz was really difficult for me. Rene Orozco bring me some help but I look for more help in http://www.cplusplus.com/forum/beginner/3212/.

Here is my first picture of the first part of the quiz (quiz 1)

This quiz was about a Fibonacci sequence, the user put a number and then the computer did the sequence with that number.

Here is my second picture of the second part of the quiz (quiz 2)

This quiz was really difficult but Rene Orozco help me and I used this link to watch for a solution http://stackoverflow.com/questions/8362572/check-if-a-string-is-palindrome

In this quiz the user has to put a string of words, and the computer will say if that string is palindrome or not, a palindrome is a word, phrase, number or other sequence which reads the same backward or forward.

 

#WSQ09 Factorial

 

Factorials

In this WSQ I used the factorials, and what is that? you maybe are asking, this is a factorial: 

 

In mathematics, the factorial of a non-negative integer n, denoted by n!, is the product of all positive integers less than or equal ton. For example,

5! = 5  times  4  times  3  times  2  times  1 = 120.

And I´m here, yeah, you can ask me whatever about it, if I don´t know maybe I can talk with my classmates and help you, you little human, jajaja :).

 

 <iostream>

<cmath>

 using namespace std;

int main(){

    int num, factorial= 1;

cout<<"Enter number to find it´s factorial: ";

cin>>num;

for (int a=1; a<= num; a++)

{

factorial= factorial*a;

}

cout <<"The factorial is:  over 9000 "<<endl; 

cout <<"Na, I´m joking, this is the real:  "<<factorial<<endl;

cout<<"Thanks for visiting us, see you "<<endl;

return 0;

}

 

Github link (This dark place where I save all my programs if you want, take a look over here):

 https://github.com/MarAnMu13575/-WSQ09-Factorials/tree/master

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).