Putting Computer Systems to Work

Slides:



Advertisements
Similar presentations
Three types of computer languages
Advertisements

Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
Course: Introduction to Computers
1 ENG236: ENG236: C++ Programming Environment (2) Rocky K. C. Chang THE HONG KONG POLYTECHNIC UNIVERSITY.
Principles of Programming Chapter 1: Introduction  In this chapter you will learn about:  Overview of Computer Component  Overview of Programming 
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Chapter Introduction to Computers and Programming 1.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
A First Program Using C#
© Janice Regan, CMPT 128, Jan CMPT 128 Introduction to Computing Science for Engineering Students Creating a program.
Higher Grade Computing Studies 2. Languages and Environments Higher Computing Software Development S. McCrossan 1 Classification of Languages 1. Procedural.
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.
Chapter 1: A First Program Using C#. Programming Computer program – A set of instructions that tells a computer what to do – Also called software Software.
11.10 Human Computer Interface www. ICT-Teacher.com.
Programming With C.
Just as there are many human languages, there are many computer programming languages that can be used to develop software. Some are named after people,
Fundamental Programming: Fundamental Programming K.Chinnasarn, Ph.D.
Chapter 1 Introduction Chapter 1 Introduction 1 st Semester 2015 CSC 1101 Computer Programming-1.
CHAPTER 1 INTRODUCTION 1 st Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
I Power Higher Computing Software Development Development Languages and Environments.
CHAPTER 1 INTRODUCTION 2 nd Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
INTRODUCTION TO COMPUTER PROGRAMMING(IT-303) Basics.
MT262: Putting Computer Systems to Work Arab Open University-Lebanon MT262 BLKI UI1 MT262 Putting Computer Systems to Work The Course and its Software.
Chapter 1: Introduction to Computers and Programming.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Some of the utilities associated with the development of programs. These program development tools allow users to write and construct programs that the.
Chapter 2 Build Your First Project A Step-by-Step Approach 2 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
Putting Computer Systems to Work Block1 Unit 1. 2 Welcome to MT262 This Course will be introduced to you and directed by: Tutor Mohammed Al- Gharawi Part.
Chapter 1: Introduction to Computers and Programming
Chapter 1 Introduction 2nd Semester H
Topic 2: Hardware and Software
Installing Java on a Home machine
BASIC PROGRAMMING C SCP1103 (02)
Development Environment
Basics of Computer A Computer is Electronic device that can
Chapter 1: Introduction to computers and C++ Programming
CSC201: Computer Programming
CSCI-235 Micro-Computer Applications
11.10 Human Computer Interface
Chapter 1: An Overview of Computers and Programming Languages
BASIC PROGRAMMING C SCP1103 (02)
System Programming and administration
Algorithms Problem: Write pseudocode for a program that keeps asking the user to input integers until the user enters zero, and then determines and outputs.
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Computer Programming Lecturer: Ir Dr Frank H.F. LEUNG
Java programming lecture one
Chapter 1: An Overview of Computers and Programming Languages
C++ Programming: From Problem Analysis to Program Design
Choice of Programming Language
TRANSLATORS AND IDEs Key Revision Points.
Chapter 1: Introduction to Computers and Programming
Installing Java on a Home machine
Computer Science I CSC 135.
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
Chapter 1 Introduction(1.1)
Chapter One: An Introduction to Programming and Visual Basic
Programming Fundamentals Lecture #3 Overview of Computer Programming
Introduction to Computer Software
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
Introduction to Computer Programming
Introduction to Computer Systems
Computer Programming-1 CSC 111
Chapter 1 Introduction to Programming
ICS103 Programming in C 1: Overview of Computers And Programming
Chapter 1: Introduction to Computers and Programming
Presentation transcript:

Putting Computer Systems to Work Block1 Unit 1 Putting Computer Systems to Work

Welcome to MT262 This Course will be introduced to you and directed by: Tutor Mohammed Al- Gharawi Part time Tutor in AOU – Faculty of IT & Computing. E-Mail (GharawiMA@yahoo.com) With Master Degree in Computer Science from the University of South Florida, USA.

Welcome to MT262 Checking Course Material Books 16 Units in 4 blocks Handbook (contains reference material) Study Calendar CD-ROMs including: Borland C++ Builder 5 Templates and Libraries

MT262 Assessment Assessment consists of: 4 TMAs (35%) (2 TMAs/Semester) 2 Quizes (15%) 1 Mid Term (25%) Final 3-hour Examination (25%)

Objectives of the course Develop a systematic approach to designing computer-based solutions. Translate designs for solutions into computer programs. Acquire basic skills in the use of C++ for writing programs. Understand concepts in C++ that are common to all similar programming languages. Acquire experience of using a modern programming environment. Acquire skills in ensuring that programs actually perform as they are intended to perform.

1. Introduction: Algorithms and Programming Languages An Algorithm is : A method of solution, described in a way that can be carried out by a computer, for solving a certain problem. In this course, algorithms will be expressed in C++ programming language.

Introduction: The Language C++ The language C++ is a development of the earlier C language: with remedies to some previous defects. and adds useful features including Objects. Why C++ for the course MT262? C++ provides all the facilities that the practical work demands. Transferring skills learned using C++ to other languages is fairly straightforward. The widespread commercial use of C++.

2. The Course Software: A computer program: Machine code: Is a sequence of instructions used to control a computer. Machine code: Initially, programs were written directly in machine code consisting of binary numbers. Assembly languages Have simplified the programming process as they use easier words and abbreviations for the machine code instructions.

2. The Course Software: Higher Level Languages (such as C++) Provide a more ‘human readable’ format for writing programs. They are directed at the need to solve problems rather than at facilities available on a specific processor. Program source code: Is a human-readable form of a program (see page 21).

2. The Course Software: Compiling: Is the process of turning source code into a form that the computer can deal with. It can be thought of as a translation process. Debugging: Is the process of tracking down errors in source code.

2. The Course Software: C++ Programming Environment A programming environment: Is a package which facilitates the writing, editing, compiling and debugging of computer programs. C++ Builder programming environment has: Main window giving access to the main menu, toolbar, …..etc.

2. The Course Software: C++ Programming Environment C++ Builder programming environment also has: Code Editor: for writing and editing the program source code. This is a specially tailored word-processing program. A compiler to translate the program source; A linker for incorporating reusable code supplied by other people;

2. The Course Software: C++ Programming Environment C++ Builder programming environment also has: Extensive facilities for testing the programs, both as a whole and step by step; Libraries of code for carrying out common programming tasks; A number of other facilities connected with the details for programming for windows, such as: Forms for designing application windows; and Object Inspector for inspecting and editing the way in which window objects behave.

2. The Course Software: Installing C++ Builder 5 Students are advised to read pages 12 to 19. students need to install Builder 5, install Templates and Libraries, create a shortcut, and perform an initial testing. Students may be shown a quick tour of installing C++ Builder and initial testing (if time permits)

3. Exploring Builder: Introduction C++ Builder project Is a collection of files used by Builder to create an executable program. Every project consists of a number of files.

3. Exploring Builder: Files in C++ Builder Project The project source files (with extension .cpp): Which contain the source code for the project; The project resource file (with extension .res): Which contains information about the applications icon, cursors, etc.; The project makefile (with extension .bpr): Which keeps track of all the files in the project; and One or more header files (with extension .h): Which contain declarations but not code.

3. Exploring Builder: C++ Builder Project During Linking process, all the compiled project source code is combined into one executable file. Which is saved by Builder using project name with the extension .exe

3. Exploring Builder: Builder provides a variety of templates for developing new applications. The simplest is the one used throughout Blocks I and II for designing Console Applications. These are applications which are driven by commands entered at the keyboard, and which display output in a DOS window.

3. Exploring Builder Computer Activities Students are strongly advised to do computer activities (3.1  3.5) Tutor may demonstrate how computer activity 3.1 works. Activity 3.1 is about writing a simple program to print out the phrase “Hello world” on screen, using Builder 5.

3. Exploring Builder Activity 3.1 C++ Source Code //-------------------------------------------- #include <vcl.h> #include <stdio.h> #pragma hdrstop #pragma argsused int main(int argc, char* argv[]) { puts("Hello World."); puts("Press Enter to close program."); getchar(); return 0; } //-------------------------------------------------- Meaning of the code // is used for comments. Lines 2 and 3 tell Builder to incorporate code from libraries. Line 4 tells Builder how to deal with library files. Line 6 is to avoid the production of warning messages relating to argc and * argv[]. Lines 7,8,12, and13 provide the compulsory code required by the version of C++ being used and by the Windows operating system. Lines 9, 10, and 11 provide an example of output from and input to the computer. (puts(…) is short for ‘put string’; getchar() is to await input from user.

3. Exploring Builder Activity 3.3

3. Exploring Builder Activity 3.3: Activity 3.4 : includes an important aspect about adding libraries to a project using the command: Project | Add to Project … Activity 3.4 : Uses the Object Inspector : To write a program for producing a single window (form) on which a single button will be placed.

4. Using Computers computer systems All computer systems have: Input devices for receiving information, either from the user or from the components of an appliance; List what input devices do you know? Processors for manipulating the information received; What else do you know about processors?

4. Using Computers computer systems c) Storage devices for storing the programs and data used by the processor; List types of storage devices that you know? d) Output devices for returning the processed information back to the user (or components). What type of output devices do you know?

4.1 Embedded systems Embedded systems are: computers that are built into devices (such as machine tools, measuring instruments and vehicles) to control the way they operate. A bicycle speedometer and a washing machine controller are examples of embedded systems (how do these operate? Read pp. 30,31 ).

Event-driven and Procedural Models for programming In event-driven models, the user drives the program. Event-driven programs respond to events initiated by the user, such as key presses and mouse clicks.

Event-driven and Procedural Models for programming In procedural models, the program drives the user. This means that, the program controls when it will ask for input, when it will provide output and the order in which various things happen. Programming for embedded systems can take both approaches.

4.2 Non-embedded systems When users use computers, they actually work with application programs (e.g. MS Word) Operating systems make computers able to use other programs. When designing application programs there are specific designs which follow “Human-computer interaction” rules.

4.2 Non-embedded systems A code specification is: The description of what a piece of code does; A code implementation is : How a piece of code achieves its purpose. Reusable code is: Code that can be made available to other programs. A Library is a file which contains reusable code for carrying out various tasks (e.g. Builder’s standard I/O library)

5. Computer Hardware This section contains a revision about : Types of computers I/O devices Memory (RAM, ROM) Storage devices (CD-ROM, CD-R, CD-RW) Please read pp. 37-40 Of BI-U1

Thanks Thanks for joining us. Next is Unit 2