Fun with Numbers #WSQ03

Task today was to ask for 2 integer numbers in order to do various mathematical operations.

  • The difference of the two numbers.
  • The product of the two numbers.
  • The integer based division of the two numbers (so no decimal point). First divided by second.
  • The remainder of integer division of the two numbers.
  • And as a bonus, addition.

First ask for the numbers:

Screenshot4.1

Second, write the commands the program will run:

Screenshot4.2

Third, thing to do is to compile your program.

Screenshot4.3.png

Next, you must run it

Screenshot4.4

And there you have it… Really simple program, but I had help from my friend Christian, because he knows more than me 😀

 

5397869877_ce1fd0e087_z
.numbers by: .Thomas Alexander https://www.flickr.com/photos/thomasspeller/5397869877/in/photolist-9dZuE2-fcVveb-dJQF46-ipz26T-y9DdY-wiAw81-5NnYx5-fQ6qDt-6UtG9S-kD9Lqt-Cas4r9-466Ys3-7gpM2X-5pmhD5-6px3YT-7r4UdN-bFwnMH-4CzFUi-6pBcjh-jXBuPc-9rLSJU-eiMSjS-51NuHQ-9UAzzu-AzrwCH-aYjhbM-orXCLa-6mCuiz-kaLZFH-5Y6Zhn-eZ8wJY-7H8vPq-3KxvG-r4m9Jk-5peSdV-4Ne9WF-65W2Xp-jr9JBi-p8ZxD6-kAtk2a-c8agC-9A4eFW-uuRGf7-9fdyfV-4umSgE-9djrNk-fwQwZH-uAVhM-3ZwQB4-4hkQiy

 

“Hello World” #WSQ02

After watching Ken’s video on youtube “LINK” about Hello World on C++

Screenshot1.2.png

I decided to work with my program following his directions, once I did this, it didn’t work for about a day, after this happened I came to school hopping for the best; special thanks to Christian Moreno for helping me out, he told me to download cygwin again and install many components I didn’t have. He said: “Descargalo otra vez, y si no checo tu programa” well the program was correct but the components weren’t.Screenshot2.2

This was the code for Hello World, Christian continued coaching me while we tried to make it work, succesfully he told me that I had compiled correctly; in order to compile you must write “g++” and the name of your program , and that in order to make it work you should always put “./a.exe” in order to execute the program compiled before.Screenshot3.2.png

Finally, after re-downloading cygwin, I was able to run this easy program… Hello World

 

Banana for scale!!

7101134513_5295b936e7_z
JK Brickworks https://www.flickr.com/photos/truedimensions/7101134513/in/photolist-bPvaTF-815sgJ-fap44G-2FJ1Ew-3KpTqJ-nv1Lnt-LkVum-5355XZ-7Y55Te-e5bou-bMW2de-agXchY-byVobx-6UfMT4-fooheV-8zj7hR-ef2zD-qQThR-PA4QL-4TEBQT-irrsTZ-2HUWVX-fzf7gt-5mnJQe-3q89kQ-gEYy44-hja1S-fFiUGo-79jGxr-4EZf6b-7mmnCa-pS5bBo-7w5Bhs-r7AbEi-56GEvw-bziV3g-9p29pc-npX8AN-r5jjNd-gWTn9R-oQnkxj-4dvFCC-5M1hvH-8z3ZBT-3JEzQQ-9JDW8Z-jpgBVS-nnuudg-9iDSQS-8VWDEW

 

 

#WSQ01 Get Coding

First, I decided to get the platform for coding, for this I asked MR. Ken, he suggested Cygwin, he showed us on this video how to get it done. Link

After it was completed, this icon appeared on the desktop

 

Screenshot1

Then I moved on to get the editor. First I tried with Atom, but the installer wouldn’t work on my pc, therefore I move on to Ken’s suggestion for Windows “Notepad++” where the page suggests you which one to get in order to fit your necessity.

Screenshot2.png

After installation is completed this icon would appear on your desktop if you decide to include it during installation.

Screenshot3.png

Once you open both, this is how it should be seen.

Screenshot4.png

And there you have it done…

 

Penny Board because yes 😀

7968429654_906f3ae569_z
PennyBoard picture by: Paul Chery https://www.flickr.com/photos/paulchery/7968429654/