YO SOY 1⃣9⃣6⃣!

After wanting to kill myself several times I finally finished the WSQ11 that was about:

Your jobs is to create a program that asks the user for two pieces of data:

  • The lower bound of the sequence
  • The upper bound of the sequence
Then you check the values from the lower bound (inclusive) to the upper bound (inclusive) and make a report of them. During the analysis of each number, if a Lychrel number is found it should be reported immediately with something like “Found a Lychrel number: 196”
A friend that took TC101 last semester told me that she suffered to but she recommended a Ken’s video for Big Integer.
Here is my code in GitHub.
fe6fcbe06e6c14767fede4b257403f55a8aeb5b021bff8f3a5de81d8ec299460

Lists (WSQ10 )

Hey there! We’ll be developing the WSQ10 assignment in this blogpost.

This code is not difficult but is longer than the rest. Here’s the description:

“Create a program that asks the user for 10 numbers  (floating point). Store those numbers in a list. Show to the user the total, average and standard deviation of those numbers.”

Before we get started, let’s define the average and the standard deviation.

  1. Standard deviation: Is a measure that is used to quantify the amount of variation or dispersion of a set of data values. (Source: https://en.wikipedia.org/wiki/Standard_deviation)
  2.  Average: Is the sume of all the elements of a list divided by the number of elements.

Now, let’s start.

list01

We’ll build this code in three parts. The yellow one is about functions, the green one is the part that will ask the user for the 10 numbers and append them in a list, and the red one will print the results, calling the functions.

The first function is really easy, we just sum the elements form the list in line 20. The second function is the most difficult one. The formula to get the standard deviation, we need to compare each value with the total average, then square that sum, and at the end, divide everything by the number of elements on the list, in this case, 10.
The last function will be the average, we just sum all the elements divided by 10.

Line 27, 28 & 29 are going to call our three functions and print the results.

list02

Here are the results. The program asks the user correctly for 10 numbers and then the list gets printed. after that, as we were waiting, we get the total, the average and the standard deviation.

Here’s my code. If you have a suggestion about how

Continue reading “Lists (WSQ10 )”

Can you spot the face? (palindrome)

Photograph Credit

WSQ11, that was fun, wasn’t it? The interesting part was getting to use the big integers. Ken shows us how to do that but I show you how to apply it to a palindrome. I think my program es pretty simple and is easy to understand. See the trick is to separate your problems by sections. So make a function to solve each problem. The video is kind of, sort of long  but I don’t think it’s that tiring to watch so give it a shot. I’m sure you will learn some valuable information in it. Well here is the code:

YoSoy196.cpp

And of course here is the tutorial, enjoy

Made by Orlando Lara

#Yo soy 196 #WSQ11

Hey there, finally there is a new program up! Here a video that explains how I did it!

Just kidding! I didn’t do this program on a run, I did it on some minutes of each day! Hope you like the video :3.

For doing it, I actually don’t look for any extra info, just see the video that Ken upload on how to download and put BigInteger and how to use Make, here I leave you the video that Ken put, thanks Ken for it:

Here is some pictures of the program running, at list there is some differences with the program that Ken run, but it’s close:

Sin título

The code, you can check it here:

https://gist.github.com/anonymous/eb59890f7ffa5c1016f4

I know that I don’t upload any video, but I can help you out if you want to, just send me a comment or a message.