Programming Flashcards
What is a program? What is programming?
Program is software; operating info used by a computer, a logical pattern of instructions
Programming is the process of creating a set of instructions for the computer to perform
What are the three language translators?
- Assembler - converts Assembly language into machine language
- Compiler - converts one language to another (usually to machine language)
- Interpreter - translate line by line as it executes
Four generations of programming language
1st GL - machine language (0s and 1s, low level)
2nd GL - assembly language (has a little more English)
3rd GL - high-level = general purpose programming (python, VB, C/C++)
4th GL - very high-level = used for specific applications like databases (SQL)
What is a variable?
A variable is a space in RAM where you can store and retrieve something
Variable steps
1. Declare the variable DIM variablename 2. Declare the data type (integer, string,...) DIM variablename As Integer 3. Assign a value to the variable Variablename=4
*note: you can only assign ONE value to each variable; any new assignments will replace old ones
Assigning value to variables syntax:
- Getting data FROM a textbox
- Showing/ sending data TO a textbox
- Variable = textbox.text
- Textbox.text = variable
Right side = your “solid” “original” TRUE amount that you WANT to send to the left!
X=4
4 is the legit number that you WANT X to be.