# C++ lecture

**Topics:**Programming language, Algorithm, Problem solving

**Pages:**22 (2081 words)

**Published:**November 3, 2013

Programming Fundamentals:2013

Lecture 1

Introduction to Programming

University Institute of Information Technology, PMAS-AAUR

Lecture 01:

Programming Fundamentals:2013

Text and Reference Material

• The Waite Group’s, Object Oriented

Programming Using C++, Third edition, Robert

Lafore.

• Deitel& Deitel, C++ How to program, Prentice

Hall Inc, 1998.

• References:

• Gary J. Bronson, Program Development and

Design Using C++, third edition.

Thomoson/Course Technology, 2006.

University Institute of Information Technology, PMAS-AAUR

Lecture 01:

Programming Fundamentals:2013

Tentative Grading Policy

•

•

•

•

•

Mid Term

Final Exam

Final Exam Practical

Assignment

Quizzes

University Institute of Information Technology, PMAS-AAUR

Lecture 01:

Programming Fundamentals:2013

Introduction

• A computer is a useful tool for solving a great

variety of problems.

• To make a computer do anything (i.e. solve a

problem), we have to write a computer

program.

• In a computer program we tell a computer,

step by step, exactly what want to do.

University Institute of Information Technology, PMAS-AAUR

Lecture 01:

Programming Fundamentals:2013

Introduction (contd…)

• Following each step mechanically, to

accomplish the end goal.

• The sequence of steps to be performed in

order to solve a problem by the computer is

known as an algorithm.

• Flowchart is a graphical or symbolic

representation of an algorithm. It is the

diagrammatic representation of the step-bystep solution to a given problem. University Institute of Information Technology, PMAS-AAUR

Lecture 01:

Programming Fundamentals:2013

Concept of Languages

• Languages are used for Communication

between Users and Computers.

University Institute of Information Technology, PMAS-AAUR

Lecture 01:

Programming Fundamentals:2013

Program Design Process

• Program Design consists of the steps a

programmer should do before they start

coding the program in a specific language.

Proper program design helps other

programmers to maintain the program in the

future.

University Institute of Information Technology, PMAS-AAUR

Lecture 01:

Programming Fundamentals:2013

Problem Solving

University Institute of Information Technology, PMAS-AAUR

University Institute

Technology, PMAS-AAUR

Lecture 01:

Programming Fundamentals:2013

Problem Solving is easy if you follow

these steps

Understand

the

problem

University Institute of Information Technology, PMAS-AAUR

Lecture 01:

Programming Fundamentals:2013

Step 1 – Understand the problem

•

•

•

•

Read the problem carefully.

Find the important information.

Write down the numbers.

Identify what the problem wants you

to solve.

• Ask if your answer is going to be a

larger or smaller number compared to

what you already know.

University Institute of Information Technology, PMAS-AAUR

Lecture 01:

Programming Fundamentals:2013

Step 1 - Understand the Problem

Read the problem carefully.

• Luis earned 14 Accelerated

Reading points the first week of

November. At the end of the

following week he had a total of

31 points. How many points did

he earn the second week?

University Institute of Information Technology, PMAS-AAUR

Lecture 01:

Programming Fundamentals:2013

Step 1 - Understand the Problem

Find the important information.

• Luis earned 14 Accelerated

Reading points the first week of

November. At the end of the

following week he had a total of

31 points. How many points did

he earn the second week?

University Institute of Information Technology, PMAS-AAUR

Lecture 01:

Programming Fundamentals:2013

Step 1 - Understand the Problem

Write down the numbers.

• Luis earned 14 Accelerated

Reading points the first week of

November. At the end of the

following week he had a total of

31 points. How many points did

he earn the second week?

Total = 31...

References: Thomoson/Course Technology, 2006.

Please join StudyMode to read the full document