⁄⁄⁄⁄Quiz 2⁄⁄⁄⁄

Photograph credit

Man, it has been a loooooong day and finally this is the last post that is due. Ok, just like the last post about the last quiz, I’m not gonna go into detail about how to make these programs, I’m just going to explain how they work. Here are some links for reference:

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

http://www.tutorialspoint.com/cplusplus/cpp_templates.htm

Code:

Stars.cpp

Superpower.cpp

In this quiz we have to make 2 programs, the first one is called stars and the second one is called superpower. In star we have to make a function that prints out the number of stars that the user asks for. In superpower we basically raise a number to the something power. In this last one you can do it with a loop or with recursion. I personally don’t like recursion and decided to do my program with a loop. In my tutorial a explain my program that uses a loop, but I promised I would share a video from someone else to help explain how to do it with recursion. Here it is.

And here is the explanation on hoy my programs work, enjoy.

Made by Orlando Lara

CC BY-SA 4.0 ⁄⁄⁄⁄Quiz 2⁄⁄⁄⁄ by Orlando Lara is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.