This semester I have been working on coding through a book called C++. Some of the beginner keys to learning this system are input and output or “cin” and “cout”, “if” conditional (if (condition) is true then do this), mathematical and logical operators
( + - >= == ), variables, and I have also used int for integers.
These keys can be used to create programs like Fortune Teller. This game/program generates a player’s lucky number. I have also taken the framework of the Fortune Teller game to make a relationship predictor game. For another variation I have also used the framework of the Fortune Teller game to make a simple calculator.
To make a grading program, you enter the symbol (%) and it gives you a letter grade and/or a message.
I have made a vending machine program which presents you with choices of drinks. You input the number you want, and it outputs what you bought.
My favorite game is one that repeatedly tells you not to enter 5 until you enter 5. Then it says “you weren’t supposed to enter 5!” :)
Last, I have made a program where you enter how many things each person ate, and it tells you who ate the most. If this was real life, I would eat the most.
The best part about coding with C++ is that I am learning how make my own programs and I hope to invent my own video game some day. Another goal of mine is to develop an APP that makes me a lot of money.
As I learn to code, I have learned to fix my own errors or create new outcomes through the input of programs, but the most is to not make mistakes.
~Craig
No comments:
Post a Comment