Yo soy 196

--Originally published at Valeria CT

I finally made it!

I was working all weekend and some time also during the week on my WSQ08, and I saw that what everyone was saying was true: it was really challenging. What I did is, I worked on pieces of the assignment separately: I did the palindrome check on one program, the inverse iteration on another and the lycherel check on another, then finally I was working on the input of the range.

I believe this was the hardest for me, because I was able to catch negative integers and whether the upper value was smaller than the lower, but when I tried to catch if the user wrote letters or symbols I got into an infinite loop. I worked and did research on this for about two hours until I remembered an assignment from Cham’s class that I helped her student complete where they checked a string to see if it was alphanumerical, digits, etc. So I did this and then I only had to put together all of my codes.

 

Here’s the link to my GitHub folder that contains the files on this WSQ. The final one (that works) is called lycherel.cpp

https://github.com/valeriact/tc1017/tree/master/yosoy196

 

There were a lot of resources that I used, here’s a list of them:

-Valeria


WSQ07 with Vectors

--Originally published at Valeria CT

In order to let user input values without declaring how many at the beginning, we can use vectors. However, I wasn’t able to perform any function by calling the values in a vector, so I also created an array with values from the vector and the it was easy to perform the function that I had writen previously on my other WSQ07s.

The link to my program is: https://github.com/valeriact/tc1017/blob/master/wsq07-4.cpp

The resources I used are:

-Valeria