Quiz Week 10

--Originally published at Valeria CT

I found that this quiz was pretty simple because I had just read how to look for a certain character in a string in the book How To Think Like a Computer Scientist. 

I did a program with the template that Ken provided which can be found here:

https://github.com/valeriact/tc1017/blob/master/quizweek10.cpp

And another which actually asks the user to input a string and the character that he or she wants to look for:

https://github.com/valeriact/tc1017/blob/master/quizweek10-2.cpp

 

Here are the resources that helped me:

-Valeria


Factorial calculator

--Originally published at Valeria CT

For this assignment I tried different types of loops until I found out how to use a goto command and found that it was really helpful. I finally used a string and discovered that I had to include a special library for it.

Here is the link to my program: https://github.com/valeriact/tc1017/blob/master/wsq06.cpp

And the resources that I used:

 

-Valeria