#Quiz03(finally!) VIDEO

This was the most difficult program i´ve done since i started coding. The first one was extremely easy but the fibonacci´s got me like

24

Well lets check the codes here´re both of my codes

1st Program: Create a code that calculates the distance between two point in the cartesian plane.

Easy one, the user must type the coordenates of the two points(giving the x and y values of both of them) and using the pythagorean theorem getting the addition of the squares of the differences between x1-x2 and y1-y2. Well here´s a ss of the code and how it works

dist

Dont forget to add the cmath library to use the square root.

2nd Program Fibonacci´s(wth)

Now we´re talking about serious stuff, doing this code was extremely difficult i was breaking my head because i was trying doing it with loops(and there must be a freaking way and later ill figure it out!) then i found the formula

image62

Anddd this helped a lot, to understand better the formula and the proccess. Friday in class me and AlexFoo found a website that explain the fibonacci(and the code) incredibly well. Here´s the page m8s

Let´s check a quick video made by me, explaining the code and some of the fibonaccis uses.

Hope that the video may helped you a little bit, if you have a doubt don´t hesitate to contact me in Fb (Darío Magaña) Twitter @dariosneijder or in my cellphone 3521252322.

I want to take advantage of this post letting you here my Tumblr account, i´m always posting interesting stuff about everything and some amazing pics and thoughts just like this one:

 

#WSQ09 Factorial Video Explanation

Here´s the code, copy it if you want to

Don´t forget the main part of the code, the use of a counter and the condition of the loop, is the most important thing, if you still don´t know how to use loops or what are the loops i recommend you this video, it actually helped me a lot to figure out the logic of the loops.

Check my explanation(in spanish for this time) about how my code works and with it you can check if you have any mistakes or something weird on your code.

Im anxious about doing more WSQ´s, programming is turning one of my fav hobbies.

tumblr_n6xlhdPNxz1rxzj6uo1_500.jpg

#QUIZ01 When u were only missing a bracket

Today we had the first quiz of the course, the challenge was to create 3 programs, using what we´ve learned since we started the lessons.

The first code calculates the volume of a cylinder, asking the user for the value of the radius and the height, declaring the values as a float data. (Clic on the link for more information) and here´s a screenshot of how it looks like working out.

prog1.jpg

I know there´re some libraries we could´ve used but i didnt know which one to choose and how to use i just know is something like M_PI and the library´s name is math.h or something like that, I´ll search more information about it so next time i wont need to write the PI value.

The second one was similar to the one we did two weeks ago, asking the user to type two numbers and showing the product, division and remainder of them.(I changed the Cygwin background color and it look nice haha)

2

And the last one is almost the same as the 2nd but we had to declare the variables as a float data, so the program could show decimals i the answers. It also shows the addition and the subtraction of the two numbers.

This self-learning course is helping me a lot, with no pressure of doing homeworks and with my own resources. If it wasn´t i could not do activities like this.

 

#WSQ05 Temperature

Here´s my code in GitHub

I´ve done my last posts using “PrintF” and “ScanF” commands but i found necessary to change them into “cout” and “cin” i used my friend´s blog as a reference to try them.

Here´s a screenshot of how my code ended

12633076_10208553466499221_2088124466_o

I´ve already knew the convertion formula to Farenheit to Celsius so thtat help me out a little bit.

Here´s a quick view of how the program works

12630907_10208553483899656_240912859_o

This is getting easier and easier while im working on it.

#WSQ03 Fun with numbers

First of all, here´s my code https://github.com/dariomagana10/operaciones.cpp.git and bellow i´m posting some screenshot of it so dont worry 🙂

I thought creating this program was going to be something difficult(because its our first code and we´re figuring out how to program in C++) but it wasn´t! there´s a lot of information in Internet but i definitely recommend this youtube channel https://www.youtube.com/channel/UC8mLKwIn-2Yb7nssjgEHWrw

Thank Goku this man exist, his tutorials are very clear and easy to understand so i suggest you to check it if you have troubles.

Here´s how my code ended

12630839_10208534717190500_1765694515_o

I think using “Printf” and “ScanF” is more easy than Out and In because is like the C# code that we´ve already know, but ill try both.

12620746_10208534716310478_1612643936_o

It worked! and it feels great to start comprehending this lenguage.

howweimagineprogrammerswork_73816a_4993240 I´m starting to enjoy this 😉