Lecture 1 in Programming introuction, Exercises of C programming

Programming logic logic logic introuction

Typology: Exercises

2017/2018

Uploaded on 11/14/2018

majidmehmood038
majidmehmood038 🇵🇰

1 document

1 / 19

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Introduction to
Introduction to
Programming
Programming
Lecture No. 1
Lecture No. 1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13

Partial preview of the text

Download Lecture 1 in Programming introuction and more Exercises C programming in PDF only on Docsity!

Introduction to

Introduction to

Programming

Programming

Lecture No. 1

Lecture No. 1

Program

Program

A precise

A precise

sequence of

sequence of

steps to

steps to

solve a

solve a

particular

particular

problem”

problem”

Critical Skills

Critical Skills

Analysis

Analysis

Critical

Critical

Thinking

Thinking

Attention

Attention

to Detail

to Detail

Design Recipe

Design Recipe

To design a program properly, we must:

To design a program properly, we must:

Analyze a problem statement, typically

Analyze a problem statement, typically

expressed as a word problem

expressed as a word problem

Express its essence, abstractly and with

Express its essence, abstractly and with

examples

examples

Formulate statements and comments in a

Formulate statements and comments in a

precise language

precise language

Evaluate and revise the activities in light

Evaluate and revise the activities in light

of

of

checks and tests

checks and tests

Computers are

Computers are

STUPID

STUPID

Humans

Humans

are

are

even more…….

even more…….

Area of the

Area of the

Ring

Ring

Outer Circle

Inner Circle

Area of Inner Circle


Area of Outer Circle

= Area of the Ring

Think Reuse

Think Reuse

Think User

Think User

Interface

Interface

Comments liberally

Comments liberally

Logical Error

Logical Error

Lewis Carol: “Through the Looking

Lewis Carol: “Through the Looking

Glass”

Glass”

Twas brillig, and the slithy toves

Twas brillig, and the slithy toves

Did gyre and gimble in the wabe “

Did gyre and gimble in the wabe “

Course Policy

Course Policy

Policy for the distribution of marks

Policy for the distribution of marks

and

and

examination is as follows

examination is as follows

Assignments 15%

Assignments 15%

Group discussion 5%

Group discussion 5%

Midterm 35 %

Midterm 35 %

Final 45 %

Final 45 %

Course Objectives

Course Objectives

Objectives of this course are three fold

Objectives of this course are three fold

To appreciate the need for a

To appreciate the need for a

programming language

programming language

To introduce the concept and usability

To introduce the concept and usability

of the structured programming

of the structured programming

methodology

methodology

To develop proficiency in making

To develop proficiency in making

useful software using the C language

useful software using the C language

Course Contents

Course Contents

To achieve our first two objectives we

To achieve our first two objectives we

will be discussing

will be discussing

Basic Programming constructs and

Basic Programming constructs and

building blocks

building blocks

Structured programming

Structured programming

Structured flowcharts, pseudo-code

Structured flowcharts, pseudo-code

Course Contents

Course Contents

File handling

File handling

Structures and Unions

Structures and Unions

Flavor of Object oriented

Flavor of Object oriented

programming

programming