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
Fundamentals and Solutions. Together!
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:
Well this was a damn pain in the ass, to integrate the biginteger and a BIG scare while on class and deleted the file by error (luckily had a backup), here it is:
Info here
Atom:
exe:
So, almost caught up. Later!
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.
Now, let’s start.
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.
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
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:
And of course here is the tutorial, enjoy
Made by Orlando Lara
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:
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.