Hello people! I’m back to post about the WSQ13, wich is about our Partial Exam. We made a practical programming exam that contained four programs to solve and in this WSQ we had to answer the programs correctly. So, here my solutions for them:
The first one was about the Fibonacci Numbers (we saw how to make it before), so I don’t have problem to make it. Here the screenshots of the program:
The second one consisted in make a program which calculates the operation a^b. As the first program, we made it before. Here, the screenshots:
In the third program, we have to make one program which make a Triangle asking to the user for the number of letters that he wants to conform the triangle. For example, if the user puts a 3, the triangles looks like –> t
tt
ttt
tt
t
And to get it, I used a for loop to add one T when it was lower than the number of the user, and to subtract one T if it was bigger than the user’s number.
The screenshots:
And finally the last program was about something that we made in the WSQ 11, Yo soy 196, but now we had to use Bools. I found it difficult because I’ve never used Bools but as we all known, internet is God and I found a lot of information about it, here some links to be smarter: (http://www.zator.com/Cpp/E3_2_1b.htm) & (http://www.cplusplus.com/forum/beginner/124090/)
**I had to thank to my friend Sergio Zavaleta who helped me making the program useful using lowercase and capital letters.
Here the screenshots:
And don’t forget to check my codes on GitHub.
1st Program: https://github.com/eduardomrlsg/TC101/blob/master/FiboEx
2nd Program: https://github.com/eduardomrlsg/TC101/blob/master/SPPEx
3rd Program: https://github.com/eduardomrlsg/TC101/blob/master/Trianglex
4th Program: https://github.com/eduardomrlsg/TC101/blob/master/PalEx
Regards. EdMo.
#WSQ13, Partial 2 Exam by eduardomoralesg is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.