Computer Programming Intro
Notes.
- Terms: Input, Output, CPU, Memory, Storage
- RAM (Random Access Memory)-Small area where data can be put so that the processor has quick access to the data. Fast. Volatile.
- HD (Hard Drive)-Larger. Slower. More permanent, non-volatile. A Variable= a place in memory where you can store a value.
- CPU (Central Processing Unit)-Does all of the math and logical operations
- Every Program is a solution to a problem
- You will want to list the steps your program should perform.
- An algorithm is a series of steps used to solve a given problem.
- Flow charting-representation of the logical steps of a program drawn as a picture. Common set of symbols, each representing a different programming "map"
- Pseudo code-Using English-like phrases to describe the steps
- 100s of launguages
- C-1970s (for UNIX)
- C was and is dangerous (computers are stupid)
- Visual IDE's (Integrated Development Environments) Now help you
- Machine Languages
- Microscopic Switches
- 0s and 1s
- Bit Vs. Byte
- Bit-0 or 1
- Byte- a set of 0s and 1s
- Assembly Language
- Mnemonics- a way to help people remember things
- Instead of using 0s and 1s
- Add $t0,
- Compiler-translator, takes a high level language and translate it into machine language..
- C# is a compiled language
- Procedure-oriented programs. Top-down design
- Usually simple commands. Use a bunch of redundant code
- What is C#? Language used to create EXEs
- Combines the open and powerful C++ with the friendly but more verbose Visual Basic
- Managed & Unmanaged code
- Flagship language of the .NET
- Flexible- Execute on the local web
- Powerful
- Easier to use
- Visually oriented
- Internet Friendly
- .net can convert or incorporate programs written in other languages
- GUI-Graphical user interface. Able to write windows programs
- Program is like a recipe
- Ingredients would be variables
- Sequence of actions or instructions would be statements
- The file on paper(PC) is called a source file, which is what the compiler acts on and contains 3 things
- Instructions to the compiler. Info about the structures to hold the data. Instructions that manipulate the data.
- Namespace is the name and where you get to your program in the computer
- Class=Which contains an identifier & is a container that holds data & code
- Identifier=a keyword in a class that should reflect what the class does
- Static makes sure that the method that follows is always present
- Void means that the next method does not return anything that needs to be stored
- Main is the starting method that's required in all C# programs
- Statement = which is a single line of code in a method
- Three ways to comment on code. Use // or /// for .net or you can use /* */ and put a multi-line comment in there.