Wednesday, January 13, 2016

For Loop vs. While Loop

Difference between For Loop and While Loop

For Loop:

It is a fixed repetition loop. It will run the given number of times no matter how the body of the for loop code changes the values of the variables.

If you have a constant (Ex: Max students), you can run the For Loop for that many times. You can change the value of the constant. Every year you can change the value of Max students.

The counter value increases or decreases depending upon the for loop min, max, incremented, or decremented values automatically as stated per requirement - no separate is made within the body of the For Loop.

A separate variable is needed most times to run a For Loop.

A For Loop can also start with a maximum value and decrease each time the body of the loop is executed.

While Loop:

While loop can have various conditions and they can be joined (AND/OR). The control enters the loop body only when the condition is met. If the condition is not met, the control goes to the statement following the end of the while loop body. A statement within the while loop changes the criteria and moves the control out to the statements that are following the end of the while loop body.

Wednesday, November 11, 2015

Flowchart Symbol


Computer Architecture Input and Output Devices

Input Devices: graphics tablets, cameras, video capture hardware, trackballs, barcode reader, digital camera, gamepad, joystick, keyboard, microphones, MIDI keyboard, mouse, scanner, webcam, touchpads, pen input, electronic whiteboard, magnetic key cards

Output Devices: monitor, printers, plotters, projector, LCD projection panels, Computer Output Microfilm (COM), speakers, radio

Both Input-Output Devices: moderns, network cards, touch screen, headsets, FAX, USB, audio cards

Wednesday, October 28, 2015

Compiler/Interpreter/Bit/Byte/UnitofMemory

Bit- digit of binary (0 or 1), (off/on)
Byte - 8 digits of binary; unit of memory, characters represented by bytes

Compiler/Interpreter - converts source code (Java, Python, C++) into binary or machine code
Compiler does it all at once after you write the code
Interpreter does it line by line when you are writing the code

My Perspective of Computer Architecture

I don't know anything about computers.

Q: How do computers understand what I type?

Programming/Computer Languages

Wednesday, September 23, 2015

System Thinking

A system is a hierarchy of different elements that relate to one another and work together to achieve a certain goal.

Every module has a specific function it has to perform which is a small part of many different modules doing many different functions.

Systems are used to create an end product, like a game or a website, when all parts of a code must work together.