Introduction COMP104: Fundamentals and Methodology.

Slides:



Advertisements
Similar presentations
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Advertisements

Lecture 1: Overview of Computers & Programming
Copyright © 2002 W. A. Tucker1 Chapter 1 Lecture Notes Bill Tucker Austin Community College COSC 1315.
Fundamentals and a Brief History of Computer Systems.
COSC 120 Computer Programming
Introduction to Computers and Programming - Class 1 1 Introduction to Computers and Programming Professor Avi Rosenfeld.
Introduction to Programming. COMP104 Lecture 1 / Slide 2 Objectives * To learn fundamental problem solving techniques: n define a problem n design an.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
1 Lecture 1  Getting ready to program  Hardware Model  Software Model  Programming Languages  The C Language  Software Engineering  Programming.
16 March, 2000 CS1001 Lecture 1 Introduction - Syllabus History of Computers Computer Components.
Introduction to Computer Programming CSC 1401: Introduction to Programming with Java Lecture 2 Wanda M. Kunkle.
Chapter 1 Introduction to C Programming. 1.1 INTRODUCTION This book is about problem solving with the use of computers and the C programming language.
Introduction to C++ Programming CS 117 Section 2 and KNET Sections Spring 2001 MWF 1:40-2:30.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ Programming:
Introduction to Programming Programming. COMP102 Prog. Fundamentals I: Introduction / Slide 2 Objectives l To learn fundamental problem solving techniques.
Introduction to Programming. COMP104 Introduction / Slide 2 Objectives * To learn fundamental problem solving techniques * To learn how to design a program.
COMPUTER SOFTWARE Chapter 3. Software & Hardware? Computer Instructions or data, anything that can be stored electronically is Software. Hardware is one.
COMP Computer Basics Yi Hong May 13, 2015.
CS102 Introduction to Computer Programming
CS 161 INTRO TO PROGRAMMING I Dr. Blaise W. Liffick Fall
Why Program? Computer – programmable machine designed to follow instructions Program – instructions in computer memory to make it do something Programmer.
Chapter Introduction to Computers and Programming 1.
Introduction to Programming Dr Masitah Ghazali Programming Techniques I SCJ1013.
CSC 110 A 1 CSC 110 Introduction to Python [Reading: chapter 1]
CSC 142 A 1 CSC 142 Introduction to Java [Reading: chapter 0]
1 Lecture 2 : Computer System and Programming. Computer? a programmable machine that  Receives input  Stores and manipulates data  Provides output.
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.
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
UniMAP Sem1-08/09EKT120: Computer Programming1 Week 1 – Lecture 1.
Visual C++ Programming: Concepts and Projects
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 1- 1 Overview 1.1 Computer Systems 1.2 Programming and Problem Solving.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 1- 1 October 20, October 20, 2015October 20, 2015October 20,
Fundamental Programming: Fundamental Programming K.Chinnasarn, Ph.D.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
1 Lecture 2 : Computer System and Programming. Computer? a programmable machine that  Receives input  Stores and manipulates data  Provides output.
C o n f i d e n t i a l 1 Course: BCA Semester: III Subject Code : BC 0042 Subject Name: Operating Systems Unit number : 1 Unit Title: Overview of Operating.
Hardware and Software Programming. COMP104 Lecture 2 / Slide 2 Hardware and Software l Why should we bother with hardware, while we are having a programming.
Computing Systems & Programming ECE Fundamental Concepts Chapter 1 Engineering Problem Solving.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
CS-303 Introduction to Programming
A.Abhari CPS1251 Topic 1: Introduction to Computers Computer Hardware Computer components Connecting Computers Computer Software Operating System (OS)
UniMAP Sem2-10/11 DKT121: Fundamental of Computer Programming1 Introduction to C – Part 1.
Chapter 1 Basic Concepts of Operating Systems Introduction Software A program is a sequence of instructions that enables the computer to carry.
Chapter 11  Getting ready to program  Hardware Model  Software Model  Programming Languages  Facts about C++  Program Development Process  The Hello-world.
Chapter 1 An Overview of Computers and Programming Languages.
The Big Picture. My Story  Wrote great programs  Didn’t understand how they worked.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
نظام المحاضرات الالكترونينظام المحاضرات الالكتروني Computer Software.
Software Engineering Algorithms, Compilers, & Lifecycle.
By Kundang K Juman Hardware & Software. COMP102 Prog. Fundamentals I: Software / Slide 2 l Four components of a computer system: n CPU - central processing.
Structured programming 1 st stage By Heba.A Raheem Assist Lecturer College of Sciences/Computer Sciences Department.
by sir fakhri alam programing fundamental
BASIC PROGRAMMING C SCP1103 (02)
Ashima Wadhwa Assistant Professor(giBS)
CSCI-235 Micro-Computer Applications
Lecture 1: Introduction to JAVA
BASIC PROGRAMMING C SCP1103 (02)
Programming Introduction to C++.
Computer System and Programming
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Chapter 1: An Overview of Computers and Programming Languages
Programming COMP104: Fundamentals and Methodology Introduction.
Computer Science I CSC 135.
Hardware & Software Programming. COMP102 Prog. Fundamentals I: Software / Slide 2 l Four components of a computer system: n CPU - central processing unit.
Introduction to Computer Programming
ICS103 Programming in C 1: Overview of Computers And Programming
Presentation transcript:

Introduction COMP104: Fundamentals and Methodology

COMP104 Lecture 1 / Slide 5 Objectives How to solve a problem (by computer) fundamental problem solving techniques How to design an algorithm algorithm design How to write a program in C++ implementation

COMP104 Lecture 1 / Slide 6 Course description l Introduction l C++ basics for Structured (or procedural) Programming l Sequential (assignments) l Branching (if statement) l Looping (while-do statement) l Arrays and algorithms l Functions (local/global, value/ref), recursion l Files l Pointers and dynamic objects l Linked lists l Introduction to OOP (Object Oriented Programming) l Classes, objects l Abstract data types mid-term static dynamic

COMP104 Lecture 1 / Slide 7 What can you do after this course? Program the computer in applications such as the following: Program a simple calculator Program simple computer games Program a simple text editor Program a small inventory system for a small company … You will be ready to take on part-time programming jobs during Xmas break!

COMP104 Lecture 1 / Slide 8 Course organization l Lectures (3 h) (office 3506, l Tutorials (1 h) l Not compulsary l Labs (2 h) l Compulsary! See lab policy. l Assignments (homework, 3 projects) Textbook: Programming in C++: Lessons and Applications, by Timothy B. D’Orazio No any prerequisite for comp104! But it’s a prerequisite for most of CS courses!

COMP104 Lecture 1 / Slide 9 A typical weekly schedule l Tu ThurLectures l Sat. Next lab posted on web l Mon-FriLab session (students encouraged to demo program by end of lab) l Sat. midnight Deadline for lab by CASS Course webpage: course.cse.ust.hk/comp104/Password_Only Print out ‘ppt’ with ‘handouts’ option!!! Newsgroup, Facebook? Eclipse tutorial SVG tutorial

COMP104 Lecture 1 / Slide 10 Grading l Labs (10%) l Assignments (25%) l Midterm exam (25%), 6 th week, l 9 th October, Sat. 1-3pm l Final exam (40%), Dec. Mark weighting

COMP104 Lecture 1 / Slide 11 Introduction to Computer Systems Hardware Software

COMP104 Lecture 1 / Slide 12 Hardware

COMP104 Lecture 1 / Slide 13 CPU - central processing unit Makes decisions, performs computations, and delegates input/output requests Memory: Stores information Main memory: RAM, e.g. 256 MB RAM Secondary memory: hard disk, e.g. 20GB Input devices Gets information from the user to the computer Output devices Sends information from computer to the user

COMP104 Lecture 1 / Slide 14 What is a program? A computer program performs a specific task, and may interact with the user and the computer hardware. Human work model: Computer work model: A program is a set of instructions

COMP104 Lecture 1 / Slide 15 What is a (programming) language? A program needs to be written in a language There are many programming languages Low-level, understandable by a computer High-level, needs a translator! C++ is a high level programming language A sequence of instructions A program (in computer language) An algorthm (in human language)

COMP104 Lecture 1 / Slide 16 Machine binary languageLow-level assemblyHigh-level An example:

COMP104 Lecture 1 / Slide 17 Machine binary language: unintelligible Low-level assembly language Mnemonic names for machine operations Explicit manipulation of memory addresses Machine-dependent High-level language Readable Machine-independent Levels of programming language

COMP104 Lecture 1 / Slide 18 How to translate? Examples of compilers: Microsoft Visual C++, Eclipse, g++ A program written in high-level programming language (for example, C++ program) A low-level (machine language) program that is understandable by a computer (for example, a PC) COMPILER (for example, Visual C++)

COMP104 Lecture 1 / Slide 19 Application software Programs designed to perform specific tasks and are easy to use System software Programs that support the execution and development of other programs Two major types Operating systems Translation systems (compilers & linkers) What is a software? The set of all programs or a set of programs

COMP104 Lecture 1 / Slide 20 Operating System (OS) Windows (DOS, NT, XP, …), Unix (Linux, Solaris, …) Common application software: Microsoft Word, WordPerfect PowerPoint Netscape, IE PhotoShop, Photo-Paint Quick Time

COMP104 Lecture 1 / Slide 21 We teach C++, Why? C++ is one of the most popular languages C++ (originally C) Basic, Pascal, Java, Perl, Cobol, Scheme, Lisp, Smalltalk, Ada, … C++ is portable (runs on PC, Machintosh, Unix, Mainframes …) C++ is widely used in industries (almost by everyone) C++ is not easy to learn  The most common versions of C++: Microsoft Visual C++ Eclipse g++ (for Unix machines) C C++

COMP104 Lecture 1 / Slide 22 Programming or Software Development Editing (to write the program) Compiling (creates.obj file) Linking with compiled files (creates.exe file) Object files Library modules Loading and executing Testing the program debug

COMP104 Lecture 1 / Slide 23 Integrated Development Environments (IDE) Editor Compiler Linker Loader Debugger Viewer Combine all of the capabilities that a programmer would want while developing software (VC++, Eclipse) builder

COMP104 Lecture 1 / Slide 24 Summary