BCSE101E- Computer Programming 01
BCSE101E- Computer Programming 01
BCSE101E- Computer Programming 01
Python
2. To inculcate the art of logical thinking abilities and propose novel solutions
for real world problems through programming language constructs
COURSE OUTCOME
1. Classify various algorithmic approaches, categorize the appropriate data
representation, and demonstrate various control constructs.
English 010101
Tamil High level COMPILER Low level 010101
Languages Converts the HL to LL Languages
Telugu Check for syntax error 010010
Hindi 011101
Main() Assembly
Malayalam { Interpreter 011010
etc Executes the instruction and Languages
Int a=5,b=6;
Int c= a+b; gives output Machine
} Load R1, A
Assembler Load R2, B Level
Converts Low level Languages Add A,B Language
Ex: Java,C, C++,
Python etc., into Machine level language Mov C
Python and its Advantages
• Developed by Guido Van Rossum during 1980’s
• Easy to learn
• Welcome to Python.org
• google colab
• Determine the steps to transform the information from one representation into
another.
Steps in Problem solving
Identify and
define the
problem
• Phase 1:
• Organizing the problem or pre-programming phase.
• Phase 2:
• Programming phase.
PRE-PROGRAMMING PHASE
• Analyzing The Problem
• Understand and analyze the problem to determine whether it can be solved
by a computer.
given in the problem List of processing Output List of ideas for the
or provided by the required or requirement. solution of
user procedures. the problem.
PRE-PROGRAMMING PHASE
• Payroll Problem
• Calculate the salary of an employee who works by hourly basis. The formula to be
used is
Salary = Hour works * Pay rate
Data Processing Output Solution Alternatives
Hours work, Salary = Hours work * payrate Salary 1. Define the hours worked
Pay rate and pay rate as constants.
∗2. Define the hours worked
and pay rate as input values.
Problem 2
• Write a Problem Analysis Chart (PAC) to find an area of a circle where area
= pi * radius * radius
• Pseudo code: They usually look like English statements but have
additional qualities
Algorithm
Algorithms are not specific to any programming language
• Use of Algorithms
– Review is easier
Steps to Develop an Algorithm
Properties of an Algorithm
Different patterns in Algorithm