Tuesday, October 25, 2016
we are now able to get input through our programs. This type of input can be used to make a "Choose your own adventure" story/RPG because now the user suddenly has input. The user can now execute the 'choose' part of the 'choose your own adventure' story. This is entirely how RPG games as well as other games in general are made.
Friday, October 21, 2016
There are many different types of data types in C++. floating point data types are for things that need the decimal point to 'float' around, like for use in scientific calculations, or other things that need to be for decimal math. the Int, or integer, data type is used for whole numbers, or integers. the double data type I know is used for decimal calcualtions again. There are several variations of the double data type, such as long double, short double, long long double, etc. These are used for calculations concerning certain number ranges, whether or not you need them to be high, low, or negative numbers.
Wednesday, October 19, 2016
The most fun that I have had with C++ has been being able to make something out of nothing. For example, I can now create algebraic expressions out of some C++ code and have the computer do the work for me. This honestly was the most fun because I learned the foundations for what C++ needed to write complete programs and do certain things. This honestly made me excited because this poened the door for me to do other awesome things like create apps for a PC, maybe even write a game.
Monday, October 3, 2016
C++ treats variables and floating variables differently. A floating variables simply means that the number can have a decimal point and other things behind it. Integers, in the programming sense, can only partain to any whole,real number. Literals are also different in the way that they literally mean whatever you define them as. Literals are this way because they need to be the key part of the variable. Without a literal, the variable would not be able to function or compile.
Thursday, September 29, 2016
The idea of variables refers to something that can change in the course of a program. A vairable can be very useful in a program because it allows the input of users and can change the value of their input. It can be altered by operands and operators and essentially allows the program to run in the first place. Variables in computer terms are much like they are in math terms in the since that they can be changed and represented and altered. They are not always representing numbers either; they can represent other values set equal to words as well. Variables are the keystone of programming
Tuesday, September 27, 2016
These commands are important because they lay the foundations for every program that there is. I believe that the textbook went over how these commands are the basics of nearly every program that there is. These commands are not in every program, but some are. The textbook goes over the syntax of the C++ language, and how every command has to be written in a certain style. This is how programming languages are like real life. In most languages, every sentence must be formatted in a certain way. This is also how C++ mus be written.
Friday, September 23, 2016
a computer program is a set of instructions that become run by the computer. This is usually compiled code that is executed. A computer program can be made in any of a set of different languages like C++, Java, etc. The three main parts in a computer program are source code, compilation, and execution. Writing the source code is designing the computer program from the language itself. Then comes the part that converts the source code into something that the computer can work with. This is compiling. The code is put through a preprocessor that checks for syntax errors and then through tthe compiler itself. The compiler puts the source code into machine code, so the CPU can actually calculate the code. Then, execution comes. The execution is when the code is calculated out and the program runs. This is when you click the icon or that .exe, .run, etc.
Wednesday, September 21, 2016
The raspberry Pi is a non-profit organization that aimed to further spread computer programming education along with computer literacy courses around the world. They primarily sell the Raspberry Pi, which is a $30 computer that is the size of a credit card and is designed to run both linux and windows 10 IoT. People have developed and programmed for it quite a bit, and it has outgrown its original purpose quite a bit. The cheap price and availability of it has made it popular for all types of geek-oriented projects, from home automation to video game consoles. Minecraft even made a special port of the game for just the pi to run on. This has made the raspberry pi very successful, and they continue to come out with new models.
Monday, September 19, 2016
Thursday, September 15, 2016
The things that make up a computer program are quite simple. The main things are the operators and operands in code. The operators are essentially specific instructions for the computer. Note that these aren't the variable terms. The operands are essentially the variable terms that you can fill in with names and numbers. All of this is written in a text editor, saved, put through a preprocessor to check for errors, and then it is compiled into machine code to be executed.
Tuesday, September 13, 2016
A program is a set of code that completes a given task. Source code is the original code that the given program is written in, meaning specifically that the code isn't compiled. For example, the Android Open Source Project. The Android Open Source Project is a way if giving source code for everybody else to use. This is managed in git through Github, and you can build the source code for your device and then compile it into a zip file. I have no idea what object code is. Executable code I would assume is compiled code that can be worked with by the computer and ran. Executable code is in a few different formats throughout different Operating Systems. These files exist as .exe, .jar, bat files in Windos and in Mac OS X has .dmg executable files. Linux has meny, many different executable files, such as .run, .jar, and through the terminal, .zip and .bz2 files can be extracted and ran.
Friday, September 9, 2016
The typical PC is made up of just a few parts. Inside the case, there is a usually green or red motherboard. On this motherboard there are many expansion ports, such as SATA, power input from the power supply, and the crown jewel: the CPU. This is the main chip that calculates everything that you need to do billions of times a second. The CPU is usually underneath a large heatspreader and fan because of the usually intense heat output. Also plugged into the motherboard is usually a graphics card in higher end systems. This is now done in modern days by a PCI x16 slot. This port connects anything plugged into it directly into the CPU via PCI lanes. In older days it was done via the southbridge, an older form of architecture. The final thing that is plugged into the PC is a power supply. This metal box contains a transformer to step down the voltage to levels that the computer can use. This is typically 5 volts for USB, and 1.3ish volts for the CPU.
Wednesday, September 7, 2016
A computer translates code into something it can follow instructions by simply running the program that was created. it automatically translates the code into binary strings and then processes the numbers created. The code essentially translates all of the important values and functions into binary code. Then the code tells the computer what to do with that information. This comes out to multiplying, dividing, adding , or subtracting in the processor. Of course, the processor does this billions of times a second. There are many languages that convert this into binary, such as the 'universal' language in C++, languages like java and python, and others like it.
Friday, September 2, 2016
The word programming mans multiple things to me. Programming first and foremost I think about writing physical code on a blank text document. This can be any code really, all the way from C++ to HTML/CSS. The major thing when I think about when the word code is brought up is the Android Open Source Project (AOSP). I really like how a company like Google can create such a vast amount of coding and APIs and work with other people to create it. I myself want to try to create about the same thing. You code something by very simply opening a blank text edtor like notepad++, Brackets, Atom, etc. Now in the greater sense of coding, you need to learn the programming language first for whatever project you are doing. This is simply like learning another human language like french, english , etc. A computer language has it's own way to write it called syntax (like grammar in a sentence). Everything else really just falls into place.
Subscribe to:
Comments (Atom)