Introduction to Programming: A Beginner's Guide, Lecture notes of Programming Languages

Most important basic elements for programming languages are: Programming Environment. Data Types. Variables. Keywords. Logical and Arithmetical Operators. If else conditions. Loops. Numbers, Characters and Arrays.

Typology: Lecture notes

2020/2021

Uploaded on 07/05/2021

muhammad-salman-khan-1
muhammad-salman-khan-1 🇵🇰

5

(1)

2 documents

1 / 42

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
TRIVUz Academy
www.trivuzAcademy.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a

Partial preview of the text

Download Introduction to Programming: A Beginner's Guide and more Lecture notes Programming Languages in PDF only on Docsity!

TRIVUz Academy www.trivuzAcademy.com

Why Programming?

 What is Computer?

 What is Program?

 What is Programming?

And, Programming is

The process of writing programs is

called programming.

What is the PROCESS?

Continue…

Continue…

 Expand the outline of the solution into an algorithm : Write a step-by-step procedure that leads to the solution.

Test the algorithm for correctness : Provide test data and try to work out the problem as the computer would. This is a critical step but one that programmers often forget.

Continue…

Convert the algorithm into a program : Translate the instructions in the algorithm into a computer program using any programming language.

Document the program clearly : Describe each line of instruction or at least some important portions in the program. This will make the program easy to follow when accessed later for corrections or changes.

Programming Language?

Prerequisite…?

Almost nothing… 

How old are you?

What is your educational Background?

I don’t care… 

So, Who Are You?

 You are currently a computer user

who love to use computer.

 And definitely you are a user of a

program.

So again, What is programming?

 When we want a computer to perform a specific task, such as generating a marks sheet or a salary slip, we have to create a sequence of instructions in a logical order that a computer can understand and interpret. This sequence of instructions is called a program. The process of writing programs is called programming.

The task of programming involves a lot of effort and careful planning. Without this, the computer will produce erroneous results. The following steps should go into the planning of program:

 Defining and analyzing the problem

 Developing the solution logically using an algorithm

Understanding INPUT

Suppose we want to write a program to work out

the total and average of a student’s marks in five

subjects, we would need to mention the marks

in the five subjects as input.

Understanding OUTPUT

Next, we have to think of the output — the

elements that should be displayed and those

that should not. In the marks example, since the

task is to prepare a marks sheet, the marks in all

the five subjects, their total and average should

be displayed on the screen.