Computer Programming Basics

Slides:



Advertisements
Similar presentations
Senem Kumova Metin Introduction to Programming CS 115 Introduction to Computing PART I : Computer Basics PART II: Introduction to Computing/Programming.
Advertisements

Gerardo Schneider Department of Informatics University of Oslo December 2008.
 Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.
 The central processing unit (CPU) interprets and executes instructions.  The “brains” of the computer.  The speed of the processor is how fast it.
Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
1 Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
COMP 14 Introduction to Programming
ICAICT101A Operate a Personal Computer. A computer is an electronic device that allows you to process and store data (information)… 2.
Computer Systems Nat 4/5 Computing Science Translator Programs.
Introduction to Programming (in C++) Introduction Jordi Cortadella, Ricard Gavaldà, Fernando Orejas Dept. of Computer Science, UPC.
CS 415: Programming Languages Chapter 1 Aaron Bloomfield Fall 2005.
Chapter 1 Engineering Problem Solving 1. Hardware and Software 2 A computer is a machine designed to perform operations specified with a set of instructions.
CSCI 125 & 161 Lecture 2 Martin van Bommel. Hardware vs Software Hardware - physical components you can see and touch –e.g. processor, keyboard, disk.
Learning Targets Identify the external parts of the computer Identify examples of input devices Identify examples of output devices Define basic computer.
Computer Systems. Basic Components Auxiliary Storage OutputProcessor Main Memory Input.
Lecture 1 Introduction to computers & VB.Net. What is a Computer? Examples? A device capable of  Performing computation  Making logical decisions 
COMPUTER PROGRAMS AND LANGUAGES Chapter 4. Developing a computer program Programs are a set (series) of instructions Programmers determine The instructions.
An Introduction to Computers August 12, 2008 Mrs. C. Furman.
Intro to Computers Computer Apps 1.
Computer Basics 2.
COMPUTER TECHNOLOGY MRS. SEALE COMPUTER PERFORMANCE.
CSCI 161: Introduction to Programming 1
Introduction to Computer Systems and the Java Programming Language.
Inside your computer. Hardware Review Motherboard Processor / CPU Bus Bios chip Memory Hard drive Video Card Sound Card Monitor/printer Ports.
Computer Confluence 7/e © 2006 Prentice-Hall, Inc.
IT Groundwork ICS3UC - Unit 1 Hardware. Overview of Computer System.
Mrs. Ulshafer August, 2013 Java Programming Chapter 1.
BAT3O / BTX4C. Definition: A computer is an electronic machine that 1) takes in data and instructions (input) 2) works with the data (processing) 3) puts.
School of Computer Science & Information Technology G6DICP Introduction to Computer Programming Milena Radenkovic.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
The Computer System CS 103: Computers and Application Software.
Basic Computer Organization Rashedul Hasan.. Five basic operation No matter what shape, size, cost and speed of computer we are talking about, all computer.
Computer and Programming. Computer Basics: Outline Hardware and Memory Programs Programming Languages and Compilers.
Ch 1 - Introduction to Computers and Programming Hardware Terminology Main Memory Auxiliary Memory Drives Writing Algorithms Using Pseudocode Programming.
CS 125 Lecture 2 Martin van Bommel. Hardware vs Software Hardware - physical components you can see and touch –e.g. processor, keyboard, disk drive Software.
4th Dimension/4D ABAP ABC ActionScript Ada Agilent VEE Algol Alice Angelscript Apex APL AppleScript Arc Arduino ASP AspectJ Assembly.
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages.
Developing I/O module of KIAPS Framework with Test-Driven Development Sang-Yoon Jun, Ki-Hwan Kim, Junghan Kim, In-Sun Song, Seoleun Shin, Youngsu Lee,
Computers Inside & Out. How have computers affected your life? How has technology affected your life?
Introduction To Computer Programming – 1A Computer Parts, Words, and Definition Herriman High School.
Software Engineering Algorithms, Compilers, & Lifecycle.
Basic Computer Components Unit 2. What is a computer?  A computer is an electronic device that accepts raw data and processes it into information that.
Introduction to Computers and Programming
Java Programming: From the Ground Up
Engineering Problem Solving With C An Object Based Approach
Chapter 1: An Overview of Computers and Programming Languages
Computer Hardware and Software
Memory Parts of a computer
The physical parts of the computer
What is Binary? Binary is a two-digit (Base-2) numerical system, which computers use to process and store data. The reason computers use the binary system.
Problem Solving Using C: Orientation & Lecture 1
مهارت اول: مفاهیم پایه فناوری اطلاعات و ارتباطات فصل اول: سخت‌افزار
Computer Hardware Introduction.
Introduction to Computers
Programming Fundamentals
How do computers work? Storage.
Computer Electronic device Accepts data - input
Problem Solving.
CMPT 360 Programming Languages (Notations)
Problem Solving Using C: Orientation & Lecture 1
Computer Electronic device Accepts data - input
Introduction to Computers
Fundamentals of Computer Programming
Computer Electronic device Accepts data - input
From Problems to Algorithms to Programs
Problem Solving Using C: Orientation & Lecture 1
and Program Development
School of Computer & Information Engineering,
ICS103 Programming in C 1: Overview of Computers And Programming
Presentation transcript:

Computer Programming Basics

All the Programs on the Computer Software All the Programs on the Computer

Physical Parts of the Computer Hardware Physical Parts of the Computer

Parts of the Computer Keyboard Mouse Printer Hard Drive External Hard Drive Ram Rom CPU Monitor

Input Devices Keyboard Mouse Printer Hard Drive External Hard Drive Ram Rom CPU Monitor

Output Devices Keyboard Mouse Printer Hard Drive External Hard Drive Ram Rom CPU Monitor

RAM Random Access Memory Workspace of the computer Allows the computer to open files to work Think of it as having a large table to work on rather than just a small table

ROM Read Only Memory Memory that is not lost when the computer turns off Don’t Confuse with Hard Drive Information etched into computer and never lost.

Hard Drive Internal Memory of the Computer Programs and permanent storage are saved here

External Hard Drive Used to expand the memory of a computer

Memory Sizes Bit 8 Characters Byte 1 Bit Kilobyte (KB) 1024 Bytes Megabyte (MB) 1024 KB Gigabyte (GB) 1024 MB Terabyte (TB) 1024 GB Petabyte (PB) 1024 TB Exabyte (EB) 1024 PB Zettabyte (ZB) 1024 EB

CPU The Central Processing Unit Manages all the functions of the computer including processing data Usually measured in terms of processing speed such as gigahertz

Computer Languages 4th Dimension/4D C++ Eiffel JADE Monkey POV-Ray SPARK ABAP C++/CLI Elixir Java Modula-2 PowerBasic SPSS ABC C-Omega Emacs Lisp Java FX Script Modula-3 PowerScript SQR ActionScript Caml Erlang JavaScript MOO PowerShell Squeak Ada Ceylon Etoys JScript Moto Processing Squirrel Agilent VEE CFML Euphoria JScript.NET MS-DOS Batch Prolog Standard ML Algol cg EXEC Julia MUMPS Puppet Suneido Alice Ch F# Korn Shell NATURAL Pure Data SuperCollider Angelscript CHILL Factor Kotlin Nemerle Python TACL Apex CIL Falcon LabVIEW Nimrod Q Tcl APL CL (OS/400) Fancy Ladder Logic NQC R Tex AppleScript Clarion Fantom Lasso NSIS Racket thinBasic Arc Clean Felix Limbo Nu REALBasic TOM Arduino Clipper Forth Lingo NXT-G REBOL Transact-SQL ASP Clojure Fortran Lisp Oberon Revolution Turing AspectJ CLU Fortress Logo Object Rexx REXX TypeScript Assembly COBOL (Visual) FoxPro Logtalk Objective-C RPG (OS/400) Vala/Genie ATLAS Cobra Gambas LotusScript Objective-J Ruby VBScript Augeas CoffeeScript GNU Octave LPC OCaml Rust Verilog AutoHotkey ColdFusion Go Lua Occam S VHDL AutoIt COMAL Google AppsScript Lustre ooc S-PLUS VimL AutoLISP Common Lisp Gosu M4 Opa SAS Visual Basic .NET Automator Coq Groovy MAD OpenCL Sather WebDNA Avenue cT Haskell Magic OpenEdge ABL Scala Whitespace Awk Curl haXe Magik OPL Scheme X10 Bash D Heron Malbolge Oz Scilab xBase (Visual) Basic Dart HPL MANTIS Paradox Scratch XBase++ bc DCL HyperTalk Maple Parrot sed Xen BCPL DCPU-16 ASM Icon Mathematica Pascal Seed7 XPL BETA Delphi/Object Pascal IDL MATLAB Perl Self XSLT BlitzMax DiBOL Inform Max/MSP PHP Shell XQuery Boo Dylan Informix-4GL MAXScript Pike SIGNAL yacc Bourne Shell E INTERCAL MEL PILOT Simula Yorick Bro eC Io Mercury PL/I Simulink Z shell C Ecl Ioke Mirah PL/SQL Slate C Shell ECMAScript J Miva Pliant Smalltalk C# EGL J# ML PostScript Smarty

Languages HTML Javascript

Languages Similar to spoken languages in that you must use them very precisely so that you are not misunderstood by the computer.

Languages Each language has it own grammar, or syntax, which must be followed for the computer to understand language

Languages Each language has it own grammar, or syntax, which must be followed for the computer to understand language

Languages Consider this English: Hello, how are you ? French: Bonjour! Ca Va bien? German: Guten tag. Wie geht’s? Japanese: Konnichi wa. O genki desu ka?

Languages Consider this English: Hello, how are you ? French: Bonjour! Ca Va bien? German: Guten tag. Wie geht’s? Japanese: Konnichi wa. O genki desu ka?

Languages Consider this BASIC if (x>5) print “greater” Pascal if x > 5 writeln (greater.); C++ if (x > 5) cout << “greater.”; Java if (x >5) System.out.println (“greater.”);

Languages Machine Level (Binary) http://binarytranslator.com/ High Level Low Level

High Level Languages Language that are “High” above the language of the computer

Low Level Languages Language that are just above the language of the computer

Translators Breakdown or convert High and Low level Languages into Machine level Languages

Translators Interpreters – convert code to machine language line by line Compilers- convert the entire code to machine language at once

Algorithm A set of steps for solving a problem Steps can repeat May involve decision making

Algorithm 3 parts to a algorithm The steps are finite (go on forever) Steps may be repeated (Loops) Steps may involve decision making (While, If, Then, Else)