COMP102 Computer and Programming Fundamental I - PowerPoint PPT Presentation

1 / 13
About This Presentation
Title:

COMP102 Computer and Programming Fundamental I

Description:

COMP102. Computer and Programming Fundamental I. Lab. # 1 (1B) ... Rapid Application Development (RAD) Easy to write/compile/debug codes ... – PowerPoint PPT presentation

Number of Views:50
Avg rating:3.0/5.0
Slides: 14
Provided by: csU54
Category:

less

Transcript and Presenter's Notes

Title: COMP102 Computer and Programming Fundamental I


1
COMP102Computer and Programming Fundamental I
  • Lab. 1 (1B)
  • http//www.cse.ust.hk/timture/comp102.html

2
Contact Details
  • IA/TA/Tutor Timture CHOI
  • Please call me Tim
  • Office Room 4214a, HKUST
  • e-mail timture_at_cse.ust.hk
  • Phone 852 2358 8838
  • Office Hours Monday _at_ 1500 1600
  • Thursday _at_ 1400 1500
  • OR By Appointment

3
Course Information
  • Good news No assignment
  • Attending all labs is a must.
  • Finish all exercises from each lab. show them
    in front of me else, you wont get any mark for
    that particular lab.
  • One midterm examination
  • One final examination

4
Division of Laboratory
  • 50 lecture revision (1 hour)
  • 50 working on lab. exercises (1 hour)
  • Later in this semester, we will spend more times
    on lab. exercises
  • RecommendationTry to do the exercises at home,
    and bring questions to the class

5
Course Objectives
  • An introduction to computers fundamental
    programming techniques
  • Learn the different thinking logics between
    humans computers
  • Use C as the programming tool
  • How to write codes
  • How to make them executable (i.e. compile)
  • How to debug codes

6
What is hardware?
  • Could it be classified as a physical material?
  • Are all hardware visible?
  • Do all hardware require power to run?
  • Definition from WikipediaComputer hardware is
    the physical part of a computer, including the
    digital circuitry.http//en.wikipedia.org/wiki/C
    omputer_hardware

7
What is software?
  • Can we physically damage software?i.e. Is it
    possible to break Windows XP?
  • Are all software visible?
  • Can we touch any software?
  • Definition from WikipediaComputer software (or
    simply software) is the programs that enable a
    computer to perform a specific taskhttp//en.wik
    ipedia.org/wiki/Software

8
Input Process Output (IPO)
  • What is data?e.g. share market records
  • What is information?e.g. daily analysis report

Process
Input
Output
Data
Information
9
Programming Process
  • Input Source Codes
  • Process Compiler
  • Output Executable Program

Source Codes
Executable Program
Visual C Compiler
HelloWorld.cpp
HelloWorld.exe
10
Programming Cycle
Start
Debug
Write (Program)
You will survive if you write a good code
Execute (Run)
Compile
11
Microsoft Visual C
  • Microsoft version of C
  • Its standard does not confined to ISO C
  • Provide a user-friendly environment
  • Rapid Application Development (RAD)
  • Easy to write/compile/debug codes
  • Compilation and execution are integrated into a
    single button

12
Your First Program - HelloWorld
header file
preprocessor
00 include ltiostreamgt 01 using namespace
std 02 03 int main() 04 cout ltlt Hello
World! ltlt endl 05 return 0 06
directive
Block
13
Golden Rules to Learn Programming
  • Forget everything you learnt from maths. classes
  • Breaking down a huge problem into some small
    problems
  • Dont try to think/write a large program in one
    goal
  • Always do testing in the middle of coding
  • Try to learn the way (how stupid) computers work
Write a Comment
User Comments (0)
About PowerShow.com