## Saturday 24 August 2024

### Python Tutorial - 2 - Class 11 Computer Science - Flowchart

Flowchart

·        A flowchart is a graphical representation of an algorithm.

·        A flowchart contains various shapes which are connected by arrows, which showing the flow of control.

Draw a flow-chart to identify whether a number taken as the input from the user is an even number or an odd number?

Pseudocode

·        Pseudocode is a way of representing an algorithm.

·        Pseudocode is not an actual program. So, it cannot be executed.

·        Some of the frequently used keywords while writing pseudocode are INPUT, COMPUTE, PRINT IF/ELSE, START, STOP

·        Easily convertible to a Programming Language

·        Easy to understand and read

Write a pseudocode for identifying if a number is even or odd?

INPUT number A

COMPUTE remainder as r = A%2

IF r ==0 PRINT 'Even'

ELSE PRINT 'Odd'

Decomposition

Decomposition is the process of breaking a complex computer problem into smaller parts that are easily manageable and solvable.

### Python Tutorial - 1 - Class 11 Computer Science - Introduction to Problem-Solving

Introduction to Problem-Solving

Problem and Problem Solving

In computer science, "problem" refers to a task or challenge that requires a solution. The process of identifying a problem, developing an algorithm, and implementing the algorithm to develop a computer program is called Problem Solving. Computers may be used to solve various daily life problems such as Train Ticket Booking, Online Shopping and Net-Banking etc.

Steps required for solving a problem

·        Analysing the problem

·        Developing an Algorithm

·        Coding

·        Testing and Debugging

Analyzing the Problem

This stage focuses on understanding the problem. If we do not have a clear understanding of the problem, we may develop a computer program that cannot solve the problem correctly. In this stage, we figure out the inputs, the outputs and the processing required to convert the input into the output.

Developing Algorithm

This stage focuses on creating a logical sequence of instructions, called an Algorithm. An algorithm has a distinct start and end point, as well as a defined number of steps. For a given problem, more than one algorithm may be possible and the most suitable algorithm may be chosen.

Algorithm for finding whether a number is Even or Odd

START

Step 1 → Take an integer number A

Step 2 → Divide A by 2, and store the remainder as r

Step 3 → If r is equal to 0, A is an Even Number

Step 4 → Else it is an Odd Number

STOP

Algorithm for finding whether a number is a Prime number or Not

START

Step 1 → Take an integer number A

Step 2 → Continuously divide A with integers ranging from 2 to A-1

Step 3 → If a is divisible by any value from 2 to A-1, it is not prime

Step 4 → Else it is prime

STOP

Coding

Coding is the process of creating computer programs.

Testing

Testing is a process to check if an application is working as expected (and not working abnormally). The main objective of Testing is to find errors.

Debugging

Debugging is the activity to fix the errors found in the application during the testing phase.

Representation of Algorithms

There are two common methods of representing an algorithm —flowchart and pseudocode.

## Thursday 22 August 2024

### About S P SHARMA SIR

Shri S.P. Sharma (Sachin Parashar Sharma) is a dedicated and esteemed teacher known for his exceptional contributions to the field of education, particularly in computer science. With a career spanning several decades, he has influenced countless students and educators through his expertise, passion, and commitment to teaching.

### Early Life and Education

S.P. Sharma was born in a small town where education was highly valued, instilling in him a love for learning from an early age. He pursued his higher education in the field of computer science, where he excelled academically. His deep understanding of the subject, combined with a natural flair for teaching, led him to pursue a career in education.

### Career in Education

Mr. Sharma began his teaching career as a computer science teacher in a government school. His innovative teaching methods and ability to simplify complex concepts quickly made him a favorite among students. Over the years, he has taught various topics in computer science, including programming, algorithms, data structures, networking, and more.

Throughout his career, he has been known for his patience, dedication, and the ability to inspire students to explore the vast world of technology. Many of his students have gone on to excel in their careers, crediting Mr. Sharma for their strong foundation in computer science.

### Contributions to Curriculum Development

Apart from teaching, S.P. Sharma has also been actively involved in curriculum development and educational workshops. He has contributed to the creation of support materials, especially for class 11 and 12 computer science, ensuring that students receive up-to-date and comprehensive learning resources. His involvement in these activities has had a significant impact on the quality of education in his field.

### Recognition and Awards

Over the years, S.P. Sharma has received several awards and recognitions for his outstanding work in education. His commitment to his students and his contributions to the academic community have earned him respect and admiration from both colleagues and students alike.

### Legacy

Mr. Sharma’s legacy is one of dedication, excellence, and a genuine passion for education. He has not only imparted knowledge but also instilled in his students the values of curiosity, perseverance, and integrity. His influence extends beyond the classroom, as he has shaped the future of many young minds, guiding them towards successful careers in technology and beyond.

Shri S.P. Sharma continues to be a source of inspiration for students and educators, embodying the true spirit of teaching. His biography is a testament to the profound impact that one dedicated teacher can have on the lives of many.