![Picture](/uploads/2/1/0/6/21066552/1419922103.png)
Brief Overview
In the Programming unit we learned many different commands and how to make lines of code work together to form a program. We learned that programming is a sequence of instructions used to perform a specific task, for example take input do basic math and then display the output. We also got a basic overview of the different levels of languages such as high level languages which are the easiest and more "human like" or comprehensible commands these include Python, Pbasic, Turing, and many more, on the other hand are the Low level languages which include Motorola 68000, Intel 8088, these are more complicated assembler languages that are designed specifically for a microprocessor. Lastly is the machine language which is the binary that interacts with the hardware causing certain items to turn off 0's or to turn on 1's.
In the Programming unit we learned many different commands and how to make lines of code work together to form a program. We learned that programming is a sequence of instructions used to perform a specific task, for example take input do basic math and then display the output. We also got a basic overview of the different levels of languages such as high level languages which are the easiest and more "human like" or comprehensible commands these include Python, Pbasic, Turing, and many more, on the other hand are the Low level languages which include Motorola 68000, Intel 8088, these are more complicated assembler languages that are designed specifically for a microprocessor. Lastly is the machine language which is the binary that interacts with the hardware causing certain items to turn off 0's or to turn on 1's.
![Picture](/uploads/2/1/0/6/21066552/674509558.jpg?259)
Steps to take before starting the programming
Before a programmer can begin writing the program he/she has to assess the situation presented and then plan accordingly to that. Firstly programmers assert their situation into a flow chart,
point form solution step-by-step in English (which is also used to document the program with comments),a sequence of screen displays to the user like a storyboard could also be used to help visualize how the task will be solved, Psuedo code can also be used to help document the program so if another programmer takes a look at the code they know exactly whats going on. Next, after we finish these preliminary steps then we get to continue to the coding where we start by including library's within the code and defining the variables. If the programmer gets any issues or compiling error then they use a basic series of steps to determine and fix the issue, theses steps are as following:Describing the problem needing to be solved, Analyzing the information, breaking it down into sub problems as needed, Define IPO steps (what outputs needed, what inputs and processing needed), using pseudo code and flow charts to display it, coding it into a programming language, and testing and debugging the problem. These are the basic steps to troubleshoot problems within the coding world. We also gained insight about IDE's or Integrated Development Environment, these are programs used to create, edit, compile, run, and debug(repair) programs in a given language. It is the main tool to create source code, compile, and test a program, the IDE may also include feature like color coding of different keywords help the programmer.
Before a programmer can begin writing the program he/she has to assess the situation presented and then plan accordingly to that. Firstly programmers assert their situation into a flow chart,
point form solution step-by-step in English (which is also used to document the program with comments),a sequence of screen displays to the user like a storyboard could also be used to help visualize how the task will be solved, Psuedo code can also be used to help document the program so if another programmer takes a look at the code they know exactly whats going on. Next, after we finish these preliminary steps then we get to continue to the coding where we start by including library's within the code and defining the variables. If the programmer gets any issues or compiling error then they use a basic series of steps to determine and fix the issue, theses steps are as following:Describing the problem needing to be solved, Analyzing the information, breaking it down into sub problems as needed, Define IPO steps (what outputs needed, what inputs and processing needed), using pseudo code and flow charts to display it, coding it into a programming language, and testing and debugging the problem. These are the basic steps to troubleshoot problems within the coding world. We also gained insight about IDE's or Integrated Development Environment, these are programs used to create, edit, compile, run, and debug(repair) programs in a given language. It is the main tool to create source code, compile, and test a program, the IDE may also include feature like color coding of different keywords help the programmer.
![Picture](/uploads/2/1/0/6/21066552/627036631.jpg?334)
C++
Throughout this unit we learned in specific details about the medium level programming language C++, this specific type of programming language is more complicated than other High level languages such as Python or Turing however this made it more enjoyable to learn. If we had more time then it would have been great to get an overall gist of the language such as using it for other tasks not just a mark calculator or a quiz. Through the tutorials for this language we learned how to create functions, variables, loops, also including library's like #include <iostream>, #include <string>, #include <iostream>, using namespace std;and etc. Using the language we made some great programs such as a mark calculator, this is a program that takes input from the user about marks and courses then outputs what the overall average would be for the 8 courses. We also got to make a Christmas quiz which is a multiple choice quiz about the topic of Christmas, this was more challenging due to the fact that we had to make loops so if the user answered incorrectly they could redo the question until they input the correct answer, we also had to use if statements during this.
Throughout this unit we learned in specific details about the medium level programming language C++, this specific type of programming language is more complicated than other High level languages such as Python or Turing however this made it more enjoyable to learn. If we had more time then it would have been great to get an overall gist of the language such as using it for other tasks not just a mark calculator or a quiz. Through the tutorials for this language we learned how to create functions, variables, loops, also including library's like #include <iostream>, #include <string>, #include <iostream>, using namespace std;and etc. Using the language we made some great programs such as a mark calculator, this is a program that takes input from the user about marks and courses then outputs what the overall average would be for the 8 courses. We also got to make a Christmas quiz which is a multiple choice quiz about the topic of Christmas, this was more challenging due to the fact that we had to make loops so if the user answered incorrectly they could redo the question until they input the correct answer, we also had to use if statements during this.
![Picture](/uploads/2/1/0/6/21066552/830458346.jpg?340)
PBasic
This is another programming language we used specifically to work with the Boe Bot's. This is a high level language that is extremely basic as to only having 30 commands, this activity combined using hardware and software to achieve a certain result such as to make the bot go forward, or to ramp, and etc. During numerous activities we added parts onto the breadboard these included LED's, resistors, sensors, transistors, and etc. The LED's were used to display and output and we had to make the LED flash and have a certain delay between the flashes. We also worked with ramping and moving the bot into four different directions, and making it turn. This was a more complicated task along with moving the robot into a square fashion and a S.
This is another programming language we used specifically to work with the Boe Bot's. This is a high level language that is extremely basic as to only having 30 commands, this activity combined using hardware and software to achieve a certain result such as to make the bot go forward, or to ramp, and etc. During numerous activities we added parts onto the breadboard these included LED's, resistors, sensors, transistors, and etc. The LED's were used to display and output and we had to make the LED flash and have a certain delay between the flashes. We also worked with ramping and moving the bot into four different directions, and making it turn. This was a more complicated task along with moving the robot into a square fashion and a S.