Wednesday, 17 June 2015

I was able to add multiplication and division to my calculator here is a screen shot of it in action http://gyazo.com/a9db27a1737372ff3ebf52eecce167ae here is the code for it http://pastebin.com/mWaqaWd4

Tuesday, 16 June 2015

I have added subtraction to my calculator here is the paste bin for it http://pastebin.com/xL1f0BUV I have also learned how to use the float function to make multiple variables instead of just one at a time for example I would have had to put int b() int a() int result but I just put float a,b result tomorrow I will add multiplication but I spent this class learning about how to use the float function and what it is. Here is a screen shot of the calculator in action http://gyazo.com/243ca6c5fc988eb55355a19a290cf4df http://gyazo.com/484b9b425075e356c16a39761ca9b63d

Monday, 15 June 2015

I am trying to learn how to improve my calculator and add new features such as subtraction and multiplication I think I now know how to do it and I will be able to finish within a couple of classes

Thursday, 11 June 2015

oday I learned how to make variables using variable I made a simple calculator and it worked the first time I tried. Here is the code for it if you would like to try just copy it into a compiler and compile it and you have a basic calculator http://pastebin.com/GGwDq7v2 http://gyazo.com/01ece4b8407f4ce8de742d3f19f8f318

Tuesday, 9 June 2015

Today I watched some more tutorials and I learned how to use if/else statments I made a very basic program were you type in your age and it says something different for different age groups here is a link to that program just copy and paste it into a compiler and change your age here (In the code) int age = 101; Pastebin also here is the finished game. http://pastebin.com/eRXEgyTf

Monday, 8 June 2015

Today I learnt about for loops which is is just a different kind of loop and the way it works is you need 3 pieces of information a starting value an ending value and how much you want to increment it by. here I made a line of code where it starts at 1 ends at 10 and goes up by 1. http://pastebin.com/7xwz0T8H if I break down the code and explain it for(int x = 1; x < 10; x++;) int x = 1; is the starting value x < 10; means to keep going until it hits 10 and x++; means add 1 every time I could also put x+=1; and it would do the same thing. http://gyazo.com/089af4ef8671bf15e94b09ef855c38c1 here is another one where it goes up by two and stops before it gets to 20 http://pastebin.com/Z3m3zkHN this is very simple yet very useful

Friday, 5 June 2015

My game from last year was basically done I just needed to add a few things and now its running here is the source code from it http://pastebin.com/wxVWzpwY I also watching this video and learned about functions https://www.youtube.com/watch?v=bsWWHo4KDHE A function is a group of statements that perform a task. Every C++ program has at least one function, which is main()