SlideShare a Scribd company logo
Chapter 9
Problem and problem
solving
What a problem can be?
 Problem solving can be a mental or machine (any systematic
procedure) process that leads to the desired outcome
required by the user.
 Thus the problem can be classified into two types
■ Well defined problem – Well defined problems have
clear goals and hence we can clearly define solution
steps.
■ And ill defined problem- no clear goals and hence cant
define steps to solve the problem.
■ In fact computers solve well defined problems only
2
What a problem can be?
✗ Well defined problems have clear goals and hence we can clearly
define solution steps. It is fact that computers solve well defined
problems only.
✗ In the field of computers, solution of a given problem is a
sequence of instructions given to a computer.
✗ Computer can solve variety of problems from the easiest to the
most complex ones.
✗ To solve a problem it needs to be given a complete set of
instructions. These instructions tell the computer what is to be
done at every step. Computer does not solve a problem; it
merely assists in solving the problem.
3
Steps to solve any problem
1. Define the problem
2. Identify the input, output and constraint of the problem
3. Identify different alternative from the above list.
4. Choose the best possible alternative from the above list.
5. Prepare detailed stepwise instruction set of the identified alternative
6. Compute results using this instruction set.
7. Check correctness of the answer obtained.
Steps 1 to 5 are performed by person who needs the solution,
while step 6 and 7 are performed by a computer.
4
Find whether a
given number is
odd or even
1. Accept the number
2. Divided the number by 2
and find the remainder
3. If the remainder is 0 then
given number is even
otherwise number is odd
5
1. Pseudo code
2. Flowchart
3. Algorithm
 The three steps given for finding whether a number is odd or even is
known as pseudo code.
 Pseudo code means fake or simulated, we should consider the second
meaning (ie Flowchart) as it is more appropriate in our context.
 The steps mentioned to solve the problem is simulated code.
The generalized solution to the problem using three
different technique
6
Flow chart
✗ A flowchart is a technique in which we use pictorial representation
of every action that we perform within the machine process that
solves a problem.
✗ A set of symbols, showing different actions, is used to represent a
flowchart.
✗ The symbols are also called components of flowcharts.
✗ We have a unique symbol corresponding to each action within a
process.
7
Symbols of Flowchart
Start/ end
✗ An oval represents a start or end point
Arrows
✗ An arrow is used to show the sequence of the actions that are
to be performed.
Input / Output
✗ A parallelogram represents input or output
Process
✗ A rectangle represents a process. A process is the core part of
any solution procedure. It is a sequence of actions. Normally a
process in computer is either arithmetic or logical operation.
8
Symbols of Flowchart
Decision
✗ A diamond indicates a decision. It is used when we want to
alter the normal sequence of the solution or when a specific
statement needs to be executed based on the result of decision
Connector
✗ A circle indicated a connector. Sometimes a flowchart may not
fit into a single part or not possible to link two process. A
connector can be used to join the two parts.
9
Problem 1: The fitting charge of tiles is Rs. 10 per square feet. Now assume that the problem is
to find the total cost of fitting tiles on the rectangular shaped town hall floor
10
Start
Input l,b
Area = l*b
Cost = Area * 10
Print Cost
End
If the cost of fitting the tile changes, the below solution will work.
Generalized solution
11
Start
Input
l,b,c
Area = l*b
Cost = Area * c
Print Cost
End
12
Problem 2: suppose you have a round cricket ground in your school. The authority wants to make the
fencing surrounding this ground. They also want to cover the total surface with a lawn. The authority
wants to know how many meters the total fencing will run into? They also want to know the total
surface area of the ground that needs to be covered with lawn.
Start
Input r
Area = 3.14*r*r
Perimeter = 2 * 3.14 * r
Print Area,
Perimeter
End
Problem 3: Ms. Jhanvi has borrowed a loan of Rs. 35,000 at the rate of 11.5 % from a
bank for 6 years. Calculate the simple interest.
13
Start
Input p, r, n
I = (p*r*n) /100
Print I
End
Problem 4: Assume that you want to find out the youngest student amongst two students.
The input in this case will be the age of the student.
14
Start
Input age1, age2
Compare
age1 & age2
Print both
students have
same age
Print First
student is
youngest
Print
Second
student is
youngest
End
Age1 < Age2 Age1 > Age2
Age1 = Age2
Start
Input age1,
age2, age3
Compare
age1 &
age2
age1 =
age3
age1 <
age3
age1 = age2
age1 < age2
age2
< age3
age1 > age2
First student
is youngest
All student
have same
age
yes
Yes
No
Yes
Third student
is youngest
Second
student is
youngest
No
No
End
Start
Input max_no
count=1
count =1
min=age
Age < min
count=count+1
No
Yes
Yes
No
count<=
max_no
Input age
yes Print
min
End
No
Flowchart to find youngest of any number of students
Start
i=1, sum=0
sum=sum + i
i=i+2
Is
i<100
yes
No
Print sum
End
Flowchart to find Sum of first 50 odd numbers
Flowchart to interchange values of two variables with extra variable
Start
Print “Enter
two numbers”
Input a, b
temp =a
a=b
b=temp
Print a, b
End
Flowchart to interchange values of two variables without extra variable
Start
Print “Enter
two numbers”
Input a, b
a = a + b
b= a-b
a=a-b
Print a, b
End
Advantages of flowchart
1. As it provides pictorial representation of the
problem solution, it is easy to understand.
2. It provides a convenient aid for writing computer
instructions.
3. It assists the programmer in reviewing and
correcting the solution steps.
4. It helps in discussion of different methods for
solving a problem. This is turn provides us a
facility to compare them accurately.
Disadvantages of flowchart
1. Drawing a flowchart for a large and complex
problem is time consuming and laborious.
2. As a flowchart consists of symbols, any changes
or modification in the program logic will most of
the times require a new flowchart to be drawn.
3. There are no standards specifying the details of
data that should be shown in a flowchart. Hence
flowchart for a given problem although with
similar logic may vary in terms of data shown.
Algorithm
 Algorithm refers to a step by step procedure for solving a
particular problem.
 An algorithm is written in a natural language like English.
 Algorithm once written then can be easily converted into
computer programs.
Algorithm to find summation of numbers divisible by 11
within the range of 1 to 100
1. Start
2. Take two variable num & sum
3. Initialize num=1 & sum=0
4. Check whether num is divisible by 11? Find the remainder when
num is divided by 11 and store it in variable say x. x= num –
int(num/11) *11
5. If x is not equal to 0 go to step 7
6. Sum = sum + num
7. Num = num + 1
8. If num < 100 go to step 4
9. Print sum
10. Exit
Algorithm to find compound interest
1. Start
2. Take four variables P,R,N and I
3. Assign values to P,N & R.
4. Calculate compound interest using
I = P * (1+R/100)N –P
5. Print value stored in I
6. End
Algorithm to find out the total weekly pay to be given to an
employee based on the number of hours he/she has worked
1. Start
2. Take three variables no_of_hrs_worked,
pay_per_hour and weekly_pay.
3. Assign value of no_of_hrs_worked & pay_per_hour
4. Calculate weekly pay
weekly_pay = no_of_hrs_worked * pay_per_hour
5. Print value stored in weekly_pay
6. End
Thanks!
Any questions?
You can find me at:
✗ nuzhatmemon.com
✗ nuzhat.memon@gmail.com
26
Ad

More Related Content

What's hot (20)

Ms word 2007
Ms word 2007Ms word 2007
Ms word 2007
Dr. Priyamvada Saarsar
 
Visual Programming
Visual ProgrammingVisual Programming
Visual Programming
Bagzzz
 
Ms excel
Ms excelMs excel
Ms excel
Muhammad Adeel Shoukat
 
Access 2016 module 1 ppt presentation
Access 2016 module 1 ppt presentationAccess 2016 module 1 ppt presentation
Access 2016 module 1 ppt presentation
dgdotson
 
C program
C programC program
C program
AJAL A J
 
Visual Basic 6.0
Visual Basic 6.0Visual Basic 6.0
Visual Basic 6.0
Anjan Mahanta
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
Aarti P
 
Introduction to visual basic programming
Introduction to visual basic programmingIntroduction to visual basic programming
Introduction to visual basic programming
Roger Argarin
 
MS Excel 2nd
MS Excel 2ndMS Excel 2nd
MS Excel 2nd
Adrian Apolinar Bulacan
 
Chapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to ProgrammingChapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to Programming
mshellman
 
Microsoft Office Package: Practical Questions
Microsoft Office Package: Practical QuestionsMicrosoft Office Package: Practical Questions
Microsoft Office Package: Practical Questions
Makaha Rutendo
 
C programming language tutorial
C programming language tutorial C programming language tutorial
C programming language tutorial
javaTpoint s
 
Advanced Microsoft Excel
Advanced Microsoft ExcelAdvanced Microsoft Excel
Advanced Microsoft Excel
Eric Metelka
 
Computer Fundamentals & Intro to C Programming module i
Computer Fundamentals & Intro to C Programming module iComputer Fundamentals & Intro to C Programming module i
Computer Fundamentals & Intro to C Programming module i
Ajit Nayak
 
Introduction to C Programming
Introduction to C ProgrammingIntroduction to C Programming
Introduction to C Programming
Amr Ali (ISTQB CTAL Full, CSM, ITIL Foundation)
 
Computer programming concepts
Computer programming conceptsComputer programming concepts
Computer programming concepts
Jasper John Cinatad
 
Css
CssCss
Css
Manav Prasad
 
Computer languages 11
Computer languages 11Computer languages 11
Computer languages 11
Muhammad Ramzan
 
Presentation on C++ Programming Language
Presentation on C++ Programming LanguagePresentation on C++ Programming Language
Presentation on C++ Programming Language
satvirsandhu9
 
MANAGING INPUT AND OUTPUT OPERATIONS IN C MRS.SOWMYA JYOTHI.pdf
MANAGING INPUT AND OUTPUT OPERATIONS IN C    MRS.SOWMYA JYOTHI.pdfMANAGING INPUT AND OUTPUT OPERATIONS IN C    MRS.SOWMYA JYOTHI.pdf
MANAGING INPUT AND OUTPUT OPERATIONS IN C MRS.SOWMYA JYOTHI.pdf
SowmyaJyothi3
 
Visual Programming
Visual ProgrammingVisual Programming
Visual Programming
Bagzzz
 
Access 2016 module 1 ppt presentation
Access 2016 module 1 ppt presentationAccess 2016 module 1 ppt presentation
Access 2016 module 1 ppt presentation
dgdotson
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
Aarti P
 
Introduction to visual basic programming
Introduction to visual basic programmingIntroduction to visual basic programming
Introduction to visual basic programming
Roger Argarin
 
Chapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to ProgrammingChapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to Programming
mshellman
 
Microsoft Office Package: Practical Questions
Microsoft Office Package: Practical QuestionsMicrosoft Office Package: Practical Questions
Microsoft Office Package: Practical Questions
Makaha Rutendo
 
C programming language tutorial
C programming language tutorial C programming language tutorial
C programming language tutorial
javaTpoint s
 
Advanced Microsoft Excel
Advanced Microsoft ExcelAdvanced Microsoft Excel
Advanced Microsoft Excel
Eric Metelka
 
Computer Fundamentals & Intro to C Programming module i
Computer Fundamentals & Intro to C Programming module iComputer Fundamentals & Intro to C Programming module i
Computer Fundamentals & Intro to C Programming module i
Ajit Nayak
 
Presentation on C++ Programming Language
Presentation on C++ Programming LanguagePresentation on C++ Programming Language
Presentation on C++ Programming Language
satvirsandhu9
 
MANAGING INPUT AND OUTPUT OPERATIONS IN C MRS.SOWMYA JYOTHI.pdf
MANAGING INPUT AND OUTPUT OPERATIONS IN C    MRS.SOWMYA JYOTHI.pdfMANAGING INPUT AND OUTPUT OPERATIONS IN C    MRS.SOWMYA JYOTHI.pdf
MANAGING INPUT AND OUTPUT OPERATIONS IN C MRS.SOWMYA JYOTHI.pdf
SowmyaJyothi3
 

Similar to Std 10 computer chapter 9 Problems and Problem Solving (20)

Algorithm for computational problematic sit
Algorithm for computational problematic sitAlgorithm for computational problematic sit
Algorithm for computational problematic sit
Saurabh846965
 
Pengenalan kepada pengaturcaraan berstruktur
Pengenalan kepada pengaturcaraan berstrukturPengenalan kepada pengaturcaraan berstruktur
Pengenalan kepada pengaturcaraan berstruktur
Unit Kediaman Luar Kampus
 
Logic Development and Algorithm.
Logic Development and Algorithm.Logic Development and Algorithm.
Logic Development and Algorithm.
NandiniSidana
 
Probability module 1
Probability module 1Probability module 1
Probability module 1
Richard Paulino
 
4. algorithm
4. algorithm4. algorithm
4. algorithm
SHIKHA GAUTAM
 
Algorithms and how to write an algorithms
Algorithms and how to write an algorithmsAlgorithms and how to write an algorithms
Algorithms and how to write an algorithms
Ahmed Nobi
 
Algorithm types performance steps working
Algorithm types performance steps workingAlgorithm types performance steps working
Algorithm types performance steps working
Saurabh846965
 
Math 116 pres. 3
Math 116 pres. 3Math 116 pres. 3
Math 116 pres. 3
United Scholars Organization (LDCU)
 
Chapter #1 (Introduction To Algorithms).pptx
Chapter #1 (Introduction To Algorithms).pptxChapter #1 (Introduction To Algorithms).pptx
Chapter #1 (Introduction To Algorithms).pptx
hekmatyarzahir44
 
Design and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptxDesign and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptx
DeepikaV81
 
Basics of Programming - A Review Guide
Basics of Programming - A Review GuideBasics of Programming - A Review Guide
Basics of Programming - A Review Guide
Benjamin Kissinger
 
Course project solutions 2019
Course project solutions 2019Course project solutions 2019
Course project solutions 2019
Robert Geofroy
 
MATH7 ADM MODULE 3.pdf
MATH7 ADM MODULE 3.pdfMATH7 ADM MODULE 3.pdf
MATH7 ADM MODULE 3.pdf
NelsonNelson56
 
9th Comp Ch 1 LQ.pdf
9th Comp Ch 1 LQ.pdf9th Comp Ch 1 LQ.pdf
9th Comp Ch 1 LQ.pdf
Naeem Mughal
 
Basics of Algorithm Unit 1 part 1 algorithm
Basics of Algorithm Unit 1 part 1  algorithmBasics of Algorithm Unit 1 part 1  algorithm
Basics of Algorithm Unit 1 part 1 algorithm
JIMS LAJPAT NAGAR
 
Writing algorithms
Writing algorithmsWriting algorithms
Writing algorithms
Krishna Chaytaniah
 
Study Material for Problem Solving Techniques
Study Material for Problem Solving TechniquesStudy Material for Problem Solving Techniques
Study Material for Problem Solving Techniques
Bobby Murugesan
 
Practical 01 (detailed)
Practical 01 (detailed)Practical 01 (detailed)
Practical 01 (detailed)
Muhammadalizardari
 
Algorithm and flowchart with pseudo code
Algorithm and flowchart with pseudo codeAlgorithm and flowchart with pseudo code
Algorithm and flowchart with pseudo code
hamza javed
 
Cis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programmingCis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programming
Hamad Odhabi
 
Algorithm for computational problematic sit
Algorithm for computational problematic sitAlgorithm for computational problematic sit
Algorithm for computational problematic sit
Saurabh846965
 
Pengenalan kepada pengaturcaraan berstruktur
Pengenalan kepada pengaturcaraan berstrukturPengenalan kepada pengaturcaraan berstruktur
Pengenalan kepada pengaturcaraan berstruktur
Unit Kediaman Luar Kampus
 
Logic Development and Algorithm.
Logic Development and Algorithm.Logic Development and Algorithm.
Logic Development and Algorithm.
NandiniSidana
 
Algorithms and how to write an algorithms
Algorithms and how to write an algorithmsAlgorithms and how to write an algorithms
Algorithms and how to write an algorithms
Ahmed Nobi
 
Algorithm types performance steps working
Algorithm types performance steps workingAlgorithm types performance steps working
Algorithm types performance steps working
Saurabh846965
 
Chapter #1 (Introduction To Algorithms).pptx
Chapter #1 (Introduction To Algorithms).pptxChapter #1 (Introduction To Algorithms).pptx
Chapter #1 (Introduction To Algorithms).pptx
hekmatyarzahir44
 
Design and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptxDesign and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptx
DeepikaV81
 
Basics of Programming - A Review Guide
Basics of Programming - A Review GuideBasics of Programming - A Review Guide
Basics of Programming - A Review Guide
Benjamin Kissinger
 
Course project solutions 2019
Course project solutions 2019Course project solutions 2019
Course project solutions 2019
Robert Geofroy
 
MATH7 ADM MODULE 3.pdf
MATH7 ADM MODULE 3.pdfMATH7 ADM MODULE 3.pdf
MATH7 ADM MODULE 3.pdf
NelsonNelson56
 
9th Comp Ch 1 LQ.pdf
9th Comp Ch 1 LQ.pdf9th Comp Ch 1 LQ.pdf
9th Comp Ch 1 LQ.pdf
Naeem Mughal
 
Basics of Algorithm Unit 1 part 1 algorithm
Basics of Algorithm Unit 1 part 1  algorithmBasics of Algorithm Unit 1 part 1  algorithm
Basics of Algorithm Unit 1 part 1 algorithm
JIMS LAJPAT NAGAR
 
Study Material for Problem Solving Techniques
Study Material for Problem Solving TechniquesStudy Material for Problem Solving Techniques
Study Material for Problem Solving Techniques
Bobby Murugesan
 
Algorithm and flowchart with pseudo code
Algorithm and flowchart with pseudo codeAlgorithm and flowchart with pseudo code
Algorithm and flowchart with pseudo code
hamza javed
 
Cis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programmingCis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programming
Hamad Odhabi
 
Ad

More from Nuzhat Memon (20)

Std 10 chapter 11 data type, expression and operators important MCQs
Std 10 chapter 11 data type, expression and operators important MCQsStd 10 chapter 11 data type, expression and operators important MCQs
Std 10 chapter 11 data type, expression and operators important MCQs
Nuzhat Memon
 
Std 10 Chapter 10 Introduction to C Language Important MCQs
Std 10 Chapter 10 Introduction to C Language Important MCQsStd 10 Chapter 10 Introduction to C Language Important MCQs
Std 10 Chapter 10 Introduction to C Language Important MCQs
Nuzhat Memon
 
Std 12 chapter 7 Java Basics Important MCQs
Std 12 chapter 7 Java Basics Important MCQsStd 12 chapter 7 Java Basics Important MCQs
Std 12 chapter 7 Java Basics Important MCQs
Nuzhat Memon
 
Std 12 computer chapter 8 classes and objects in java important MCQs
Std 12 computer chapter 8 classes and objects in java important MCQsStd 12 computer chapter 8 classes and objects in java important MCQs
Std 12 computer chapter 8 classes and objects in java important MCQs
Nuzhat Memon
 
Std 12 Computer Chapter 6 object oriented concept important mcqs
Std 12 Computer Chapter 6 object oriented concept important mcqsStd 12 Computer Chapter 6 object oriented concept important mcqs
Std 12 Computer Chapter 6 object oriented concept important mcqs
Nuzhat Memon
 
Std 12 computer chapter 6 object oriented concepts (part 1)
Std 12 computer chapter 6 object oriented concepts (part 1)Std 12 computer chapter 6 object oriented concepts (part 1)
Std 12 computer chapter 6 object oriented concepts (part 1)
Nuzhat Memon
 
Std 12 computer chapter 6 object oriented concepts (part 2)
Std 12 computer chapter 6 object oriented concepts (part 2)Std 12 computer chapter 6 object oriented concepts (part 2)
Std 12 computer chapter 6 object oriented concepts (part 2)
Nuzhat Memon
 
Std 12 computer java basics part 3 control structure
Std 12 computer java basics part 3 control structureStd 12 computer java basics part 3 control structure
Std 12 computer java basics part 3 control structure
Nuzhat Memon
 
Std 12 Computer Chapter 7 Java Basics (Part 2)
Std 12 Computer Chapter 7 Java Basics (Part 2)Std 12 Computer Chapter 7 Java Basics (Part 2)
Std 12 Computer Chapter 7 Java Basics (Part 2)
Nuzhat Memon
 
Std 12 Computer Chapter 13 other useful free tools and services important MCQs
Std 12 Computer Chapter 13 other useful free tools and services important MCQsStd 12 Computer Chapter 13 other useful free tools and services important MCQs
Std 12 Computer Chapter 13 other useful free tools and services important MCQs
Nuzhat Memon
 
Std 12 computer chapter 8 classes and object in java (part 2)
Std 12 computer chapter 8 classes and object in java (part 2)Std 12 computer chapter 8 classes and object in java (part 2)
Std 12 computer chapter 8 classes and object in java (part 2)
Nuzhat Memon
 
Std 10 computer chapter 10 introduction to c language (part2)
Std 10 computer chapter 10 introduction to c language (part2)Std 10 computer chapter 10 introduction to c language (part2)
Std 10 computer chapter 10 introduction to c language (part2)
Nuzhat Memon
 
Std 10 computer chapter 10 introduction to c language (part1)
Std 10 computer chapter 10 introduction to c language (part1)Std 10 computer chapter 10 introduction to c language (part1)
Std 10 computer chapter 10 introduction to c language (part1)
Nuzhat Memon
 
Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 3: Masking to R...
Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 3: Masking to R...Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 3: Masking to R...
Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 3: Masking to R...
Nuzhat Memon
 
Chapter 5 Using Pictures in Synfig (Practical 2: Masking to hide area in synfig)
Chapter 5 Using Pictures in Synfig (Practical 2: Masking to hide area in synfig)Chapter 5 Using Pictures in Synfig (Practical 2: Masking to hide area in synfig)
Chapter 5 Using Pictures in Synfig (Practical 2: Masking to hide area in synfig)
Nuzhat Memon
 
Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 1 Basics Opera...
Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 1  Basics Opera...Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 1  Basics Opera...
Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 1 Basics Opera...
Nuzhat Memon
 
Std 11 Computer Chapter 4 Introduction to Layers (Part 3 Solving Textual Exe...
Std 11 Computer Chapter 4 Introduction to Layers  (Part 3 Solving Textual Exe...Std 11 Computer Chapter 4 Introduction to Layers  (Part 3 Solving Textual Exe...
Std 11 Computer Chapter 4 Introduction to Layers (Part 3 Solving Textual Exe...
Nuzhat Memon
 
Std 11 Computer Chapter 4 Introduction to Layers (Part 2 Practical :Rotation ...
Std 11 Computer Chapter 4 Introduction to Layers (Part 2 Practical :Rotation ...Std 11 Computer Chapter 4 Introduction to Layers (Part 2 Practical :Rotation ...
Std 11 Computer Chapter 4 Introduction to Layers (Part 2 Practical :Rotation ...
Nuzhat Memon
 
Std 11 Computer Chapter 4 Introduction to Layers
Std 11 Computer Chapter 4 Introduction to LayersStd 11 Computer Chapter 4 Introduction to Layers
Std 11 Computer Chapter 4 Introduction to Layers
Nuzhat Memon
 
Std 11 Computer Chapter 3 Creating Animation using Synfig (Part 3) [practica...
Std 11 Computer Chapter 3  Creating Animation using Synfig (Part 3) [practica...Std 11 Computer Chapter 3  Creating Animation using Synfig (Part 3) [practica...
Std 11 Computer Chapter 3 Creating Animation using Synfig (Part 3) [practica...
Nuzhat Memon
 
Std 10 chapter 11 data type, expression and operators important MCQs
Std 10 chapter 11 data type, expression and operators important MCQsStd 10 chapter 11 data type, expression and operators important MCQs
Std 10 chapter 11 data type, expression and operators important MCQs
Nuzhat Memon
 
Std 10 Chapter 10 Introduction to C Language Important MCQs
Std 10 Chapter 10 Introduction to C Language Important MCQsStd 10 Chapter 10 Introduction to C Language Important MCQs
Std 10 Chapter 10 Introduction to C Language Important MCQs
Nuzhat Memon
 
Std 12 chapter 7 Java Basics Important MCQs
Std 12 chapter 7 Java Basics Important MCQsStd 12 chapter 7 Java Basics Important MCQs
Std 12 chapter 7 Java Basics Important MCQs
Nuzhat Memon
 
Std 12 computer chapter 8 classes and objects in java important MCQs
Std 12 computer chapter 8 classes and objects in java important MCQsStd 12 computer chapter 8 classes and objects in java important MCQs
Std 12 computer chapter 8 classes and objects in java important MCQs
Nuzhat Memon
 
Std 12 Computer Chapter 6 object oriented concept important mcqs
Std 12 Computer Chapter 6 object oriented concept important mcqsStd 12 Computer Chapter 6 object oriented concept important mcqs
Std 12 Computer Chapter 6 object oriented concept important mcqs
Nuzhat Memon
 
Std 12 computer chapter 6 object oriented concepts (part 1)
Std 12 computer chapter 6 object oriented concepts (part 1)Std 12 computer chapter 6 object oriented concepts (part 1)
Std 12 computer chapter 6 object oriented concepts (part 1)
Nuzhat Memon
 
Std 12 computer chapter 6 object oriented concepts (part 2)
Std 12 computer chapter 6 object oriented concepts (part 2)Std 12 computer chapter 6 object oriented concepts (part 2)
Std 12 computer chapter 6 object oriented concepts (part 2)
Nuzhat Memon
 
Std 12 computer java basics part 3 control structure
Std 12 computer java basics part 3 control structureStd 12 computer java basics part 3 control structure
Std 12 computer java basics part 3 control structure
Nuzhat Memon
 
Std 12 Computer Chapter 7 Java Basics (Part 2)
Std 12 Computer Chapter 7 Java Basics (Part 2)Std 12 Computer Chapter 7 Java Basics (Part 2)
Std 12 Computer Chapter 7 Java Basics (Part 2)
Nuzhat Memon
 
Std 12 Computer Chapter 13 other useful free tools and services important MCQs
Std 12 Computer Chapter 13 other useful free tools and services important MCQsStd 12 Computer Chapter 13 other useful free tools and services important MCQs
Std 12 Computer Chapter 13 other useful free tools and services important MCQs
Nuzhat Memon
 
Std 12 computer chapter 8 classes and object in java (part 2)
Std 12 computer chapter 8 classes and object in java (part 2)Std 12 computer chapter 8 classes and object in java (part 2)
Std 12 computer chapter 8 classes and object in java (part 2)
Nuzhat Memon
 
Std 10 computer chapter 10 introduction to c language (part2)
Std 10 computer chapter 10 introduction to c language (part2)Std 10 computer chapter 10 introduction to c language (part2)
Std 10 computer chapter 10 introduction to c language (part2)
Nuzhat Memon
 
Std 10 computer chapter 10 introduction to c language (part1)
Std 10 computer chapter 10 introduction to c language (part1)Std 10 computer chapter 10 introduction to c language (part1)
Std 10 computer chapter 10 introduction to c language (part1)
Nuzhat Memon
 
Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 3: Masking to R...
Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 3: Masking to R...Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 3: Masking to R...
Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 3: Masking to R...
Nuzhat Memon
 
Chapter 5 Using Pictures in Synfig (Practical 2: Masking to hide area in synfig)
Chapter 5 Using Pictures in Synfig (Practical 2: Masking to hide area in synfig)Chapter 5 Using Pictures in Synfig (Practical 2: Masking to hide area in synfig)
Chapter 5 Using Pictures in Synfig (Practical 2: Masking to hide area in synfig)
Nuzhat Memon
 
Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 1 Basics Opera...
Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 1  Basics Opera...Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 1  Basics Opera...
Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 1 Basics Opera...
Nuzhat Memon
 
Std 11 Computer Chapter 4 Introduction to Layers (Part 3 Solving Textual Exe...
Std 11 Computer Chapter 4 Introduction to Layers  (Part 3 Solving Textual Exe...Std 11 Computer Chapter 4 Introduction to Layers  (Part 3 Solving Textual Exe...
Std 11 Computer Chapter 4 Introduction to Layers (Part 3 Solving Textual Exe...
Nuzhat Memon
 
Std 11 Computer Chapter 4 Introduction to Layers (Part 2 Practical :Rotation ...
Std 11 Computer Chapter 4 Introduction to Layers (Part 2 Practical :Rotation ...Std 11 Computer Chapter 4 Introduction to Layers (Part 2 Practical :Rotation ...
Std 11 Computer Chapter 4 Introduction to Layers (Part 2 Practical :Rotation ...
Nuzhat Memon
 
Std 11 Computer Chapter 4 Introduction to Layers
Std 11 Computer Chapter 4 Introduction to LayersStd 11 Computer Chapter 4 Introduction to Layers
Std 11 Computer Chapter 4 Introduction to Layers
Nuzhat Memon
 
Std 11 Computer Chapter 3 Creating Animation using Synfig (Part 3) [practica...
Std 11 Computer Chapter 3  Creating Animation using Synfig (Part 3) [practica...Std 11 Computer Chapter 3  Creating Animation using Synfig (Part 3) [practica...
Std 11 Computer Chapter 3 Creating Animation using Synfig (Part 3) [practica...
Nuzhat Memon
 
Ad

Recently uploaded (20)

Look Up, Look Down: Spotting Local History Everywhere
Look Up, Look Down: Spotting Local History EverywhereLook Up, Look Down: Spotting Local History Everywhere
Look Up, Look Down: Spotting Local History Everywhere
History of Stoke Newington
 
How to Configure Extra Steps During Checkout in Odoo 18 Website
How to Configure Extra Steps During Checkout in Odoo 18 WebsiteHow to Configure Extra Steps During Checkout in Odoo 18 Website
How to Configure Extra Steps During Checkout in Odoo 18 Website
Celine George
 
"Heraldry Detective Project"- Coats of Arms and Mottos of "Ivanhoe" in Ivanho...
"Heraldry Detective Project"- Coats of Arms and Mottos of "Ivanhoe" in Ivanho..."Heraldry Detective Project"- Coats of Arms and Mottos of "Ivanhoe" in Ivanho...
"Heraldry Detective Project"- Coats of Arms and Mottos of "Ivanhoe" in Ivanho...
ruslana1975
 
PUBH1000 Slides - Module 11: Governance for Health
PUBH1000 Slides - Module 11: Governance for HealthPUBH1000 Slides - Module 11: Governance for Health
PUBH1000 Slides - Module 11: Governance for Health
JonathanHallett4
 
IPL QUIZ | THE QUIZ CLUB OF PSGCAS | 2025.pdf
IPL QUIZ | THE QUIZ CLUB OF PSGCAS | 2025.pdfIPL QUIZ | THE QUIZ CLUB OF PSGCAS | 2025.pdf
IPL QUIZ | THE QUIZ CLUB OF PSGCAS | 2025.pdf
Quiz Club of PSG College of Arts & Science
 
The History of Kashmir Karkota Dynasty NEP.pptx
The History of Kashmir Karkota Dynasty NEP.pptxThe History of Kashmir Karkota Dynasty NEP.pptx
The History of Kashmir Karkota Dynasty NEP.pptx
Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
 
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docxPeer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
19lburrell
 
Botany Assignment Help Guide - Academic Excellence
Botany Assignment Help Guide - Academic ExcellenceBotany Assignment Help Guide - Academic Excellence
Botany Assignment Help Guide - Academic Excellence
online college homework help
 
How To Maximize Sales Performance using Odoo 18 Diverse views in sales module
How To Maximize Sales Performance using Odoo 18 Diverse views in sales moduleHow To Maximize Sales Performance using Odoo 18 Diverse views in sales module
How To Maximize Sales Performance using Odoo 18 Diverse views in sales module
Celine George
 
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptxANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
Mayuri Chavan
 
How to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 PurchaseHow to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 Purchase
Celine George
 
How to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo SlidesHow to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo Slides
Celine George
 
2025 The Senior Landscape and SET plan preparations.pptx
2025 The Senior Landscape and SET plan preparations.pptx2025 The Senior Landscape and SET plan preparations.pptx
2025 The Senior Landscape and SET plan preparations.pptx
mansk2
 
MCQS (EMERGENCY NURSING) DR. NASIR MUSTAFA
MCQS (EMERGENCY NURSING) DR. NASIR MUSTAFAMCQS (EMERGENCY NURSING) DR. NASIR MUSTAFA
MCQS (EMERGENCY NURSING) DR. NASIR MUSTAFA
Dr. Nasir Mustafa
 
Module_2_Types_and_Approaches_of_Research (2).pptx
Module_2_Types_and_Approaches_of_Research (2).pptxModule_2_Types_and_Approaches_of_Research (2).pptx
Module_2_Types_and_Approaches_of_Research (2).pptx
drroxannekemp
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 5-14-2025 .pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 5-14-2025  .pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 5-14-2025  .pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 5-14-2025 .pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
Rebuilding the library community in a post-Twitter world
Rebuilding the library community in a post-Twitter worldRebuilding the library community in a post-Twitter world
Rebuilding the library community in a post-Twitter world
Ned Potter
 
How to Add Button in Chatter in Odoo 18 - Odoo Slides
How to Add Button in Chatter in Odoo 18 - Odoo SlidesHow to Add Button in Chatter in Odoo 18 - Odoo Slides
How to Add Button in Chatter in Odoo 18 - Odoo Slides
Celine George
 
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
parmarjuli1412
 
Look Up, Look Down: Spotting Local History Everywhere
Look Up, Look Down: Spotting Local History EverywhereLook Up, Look Down: Spotting Local History Everywhere
Look Up, Look Down: Spotting Local History Everywhere
History of Stoke Newington
 
How to Configure Extra Steps During Checkout in Odoo 18 Website
How to Configure Extra Steps During Checkout in Odoo 18 WebsiteHow to Configure Extra Steps During Checkout in Odoo 18 Website
How to Configure Extra Steps During Checkout in Odoo 18 Website
Celine George
 
"Heraldry Detective Project"- Coats of Arms and Mottos of "Ivanhoe" in Ivanho...
"Heraldry Detective Project"- Coats of Arms and Mottos of "Ivanhoe" in Ivanho..."Heraldry Detective Project"- Coats of Arms and Mottos of "Ivanhoe" in Ivanho...
"Heraldry Detective Project"- Coats of Arms and Mottos of "Ivanhoe" in Ivanho...
ruslana1975
 
PUBH1000 Slides - Module 11: Governance for Health
PUBH1000 Slides - Module 11: Governance for HealthPUBH1000 Slides - Module 11: Governance for Health
PUBH1000 Slides - Module 11: Governance for Health
JonathanHallett4
 
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docxPeer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
19lburrell
 
Botany Assignment Help Guide - Academic Excellence
Botany Assignment Help Guide - Academic ExcellenceBotany Assignment Help Guide - Academic Excellence
Botany Assignment Help Guide - Academic Excellence
online college homework help
 
How To Maximize Sales Performance using Odoo 18 Diverse views in sales module
How To Maximize Sales Performance using Odoo 18 Diverse views in sales moduleHow To Maximize Sales Performance using Odoo 18 Diverse views in sales module
How To Maximize Sales Performance using Odoo 18 Diverse views in sales module
Celine George
 
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptxANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
Mayuri Chavan
 
How to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 PurchaseHow to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 Purchase
Celine George
 
How to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo SlidesHow to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo Slides
Celine George
 
2025 The Senior Landscape and SET plan preparations.pptx
2025 The Senior Landscape and SET plan preparations.pptx2025 The Senior Landscape and SET plan preparations.pptx
2025 The Senior Landscape and SET plan preparations.pptx
mansk2
 
MCQS (EMERGENCY NURSING) DR. NASIR MUSTAFA
MCQS (EMERGENCY NURSING) DR. NASIR MUSTAFAMCQS (EMERGENCY NURSING) DR. NASIR MUSTAFA
MCQS (EMERGENCY NURSING) DR. NASIR MUSTAFA
Dr. Nasir Mustafa
 
Module_2_Types_and_Approaches_of_Research (2).pptx
Module_2_Types_and_Approaches_of_Research (2).pptxModule_2_Types_and_Approaches_of_Research (2).pptx
Module_2_Types_and_Approaches_of_Research (2).pptx
drroxannekemp
 
Rebuilding the library community in a post-Twitter world
Rebuilding the library community in a post-Twitter worldRebuilding the library community in a post-Twitter world
Rebuilding the library community in a post-Twitter world
Ned Potter
 
How to Add Button in Chatter in Odoo 18 - Odoo Slides
How to Add Button in Chatter in Odoo 18 - Odoo SlidesHow to Add Button in Chatter in Odoo 18 - Odoo Slides
How to Add Button in Chatter in Odoo 18 - Odoo Slides
Celine George
 
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
parmarjuli1412
 

Std 10 computer chapter 9 Problems and Problem Solving

  • 1. Chapter 9 Problem and problem solving
  • 2. What a problem can be?  Problem solving can be a mental or machine (any systematic procedure) process that leads to the desired outcome required by the user.  Thus the problem can be classified into two types ■ Well defined problem – Well defined problems have clear goals and hence we can clearly define solution steps. ■ And ill defined problem- no clear goals and hence cant define steps to solve the problem. ■ In fact computers solve well defined problems only 2
  • 3. What a problem can be? ✗ Well defined problems have clear goals and hence we can clearly define solution steps. It is fact that computers solve well defined problems only. ✗ In the field of computers, solution of a given problem is a sequence of instructions given to a computer. ✗ Computer can solve variety of problems from the easiest to the most complex ones. ✗ To solve a problem it needs to be given a complete set of instructions. These instructions tell the computer what is to be done at every step. Computer does not solve a problem; it merely assists in solving the problem. 3
  • 4. Steps to solve any problem 1. Define the problem 2. Identify the input, output and constraint of the problem 3. Identify different alternative from the above list. 4. Choose the best possible alternative from the above list. 5. Prepare detailed stepwise instruction set of the identified alternative 6. Compute results using this instruction set. 7. Check correctness of the answer obtained. Steps 1 to 5 are performed by person who needs the solution, while step 6 and 7 are performed by a computer. 4
  • 5. Find whether a given number is odd or even 1. Accept the number 2. Divided the number by 2 and find the remainder 3. If the remainder is 0 then given number is even otherwise number is odd 5
  • 6. 1. Pseudo code 2. Flowchart 3. Algorithm  The three steps given for finding whether a number is odd or even is known as pseudo code.  Pseudo code means fake or simulated, we should consider the second meaning (ie Flowchart) as it is more appropriate in our context.  The steps mentioned to solve the problem is simulated code. The generalized solution to the problem using three different technique 6
  • 7. Flow chart ✗ A flowchart is a technique in which we use pictorial representation of every action that we perform within the machine process that solves a problem. ✗ A set of symbols, showing different actions, is used to represent a flowchart. ✗ The symbols are also called components of flowcharts. ✗ We have a unique symbol corresponding to each action within a process. 7
  • 8. Symbols of Flowchart Start/ end ✗ An oval represents a start or end point Arrows ✗ An arrow is used to show the sequence of the actions that are to be performed. Input / Output ✗ A parallelogram represents input or output Process ✗ A rectangle represents a process. A process is the core part of any solution procedure. It is a sequence of actions. Normally a process in computer is either arithmetic or logical operation. 8
  • 9. Symbols of Flowchart Decision ✗ A diamond indicates a decision. It is used when we want to alter the normal sequence of the solution or when a specific statement needs to be executed based on the result of decision Connector ✗ A circle indicated a connector. Sometimes a flowchart may not fit into a single part or not possible to link two process. A connector can be used to join the two parts. 9
  • 10. Problem 1: The fitting charge of tiles is Rs. 10 per square feet. Now assume that the problem is to find the total cost of fitting tiles on the rectangular shaped town hall floor 10 Start Input l,b Area = l*b Cost = Area * 10 Print Cost End
  • 11. If the cost of fitting the tile changes, the below solution will work. Generalized solution 11 Start Input l,b,c Area = l*b Cost = Area * c Print Cost End
  • 12. 12 Problem 2: suppose you have a round cricket ground in your school. The authority wants to make the fencing surrounding this ground. They also want to cover the total surface with a lawn. The authority wants to know how many meters the total fencing will run into? They also want to know the total surface area of the ground that needs to be covered with lawn. Start Input r Area = 3.14*r*r Perimeter = 2 * 3.14 * r Print Area, Perimeter End
  • 13. Problem 3: Ms. Jhanvi has borrowed a loan of Rs. 35,000 at the rate of 11.5 % from a bank for 6 years. Calculate the simple interest. 13 Start Input p, r, n I = (p*r*n) /100 Print I End
  • 14. Problem 4: Assume that you want to find out the youngest student amongst two students. The input in this case will be the age of the student. 14 Start Input age1, age2 Compare age1 & age2 Print both students have same age Print First student is youngest Print Second student is youngest End Age1 < Age2 Age1 > Age2 Age1 = Age2
  • 15. Start Input age1, age2, age3 Compare age1 & age2 age1 = age3 age1 < age3 age1 = age2 age1 < age2 age2 < age3 age1 > age2 First student is youngest All student have same age yes Yes No Yes Third student is youngest Second student is youngest No No End
  • 16. Start Input max_no count=1 count =1 min=age Age < min count=count+1 No Yes Yes No count<= max_no Input age yes Print min End No Flowchart to find youngest of any number of students
  • 17. Start i=1, sum=0 sum=sum + i i=i+2 Is i<100 yes No Print sum End Flowchart to find Sum of first 50 odd numbers
  • 18. Flowchart to interchange values of two variables with extra variable Start Print “Enter two numbers” Input a, b temp =a a=b b=temp Print a, b End
  • 19. Flowchart to interchange values of two variables without extra variable Start Print “Enter two numbers” Input a, b a = a + b b= a-b a=a-b Print a, b End
  • 20. Advantages of flowchart 1. As it provides pictorial representation of the problem solution, it is easy to understand. 2. It provides a convenient aid for writing computer instructions. 3. It assists the programmer in reviewing and correcting the solution steps. 4. It helps in discussion of different methods for solving a problem. This is turn provides us a facility to compare them accurately.
  • 21. Disadvantages of flowchart 1. Drawing a flowchart for a large and complex problem is time consuming and laborious. 2. As a flowchart consists of symbols, any changes or modification in the program logic will most of the times require a new flowchart to be drawn. 3. There are no standards specifying the details of data that should be shown in a flowchart. Hence flowchart for a given problem although with similar logic may vary in terms of data shown.
  • 22. Algorithm  Algorithm refers to a step by step procedure for solving a particular problem.  An algorithm is written in a natural language like English.  Algorithm once written then can be easily converted into computer programs.
  • 23. Algorithm to find summation of numbers divisible by 11 within the range of 1 to 100 1. Start 2. Take two variable num & sum 3. Initialize num=1 & sum=0 4. Check whether num is divisible by 11? Find the remainder when num is divided by 11 and store it in variable say x. x= num – int(num/11) *11 5. If x is not equal to 0 go to step 7 6. Sum = sum + num 7. Num = num + 1 8. If num < 100 go to step 4 9. Print sum 10. Exit
  • 24. Algorithm to find compound interest 1. Start 2. Take four variables P,R,N and I 3. Assign values to P,N & R. 4. Calculate compound interest using I = P * (1+R/100)N –P 5. Print value stored in I 6. End
  • 25. Algorithm to find out the total weekly pay to be given to an employee based on the number of hours he/she has worked 1. Start 2. Take three variables no_of_hrs_worked, pay_per_hour and weekly_pay. 3. Assign value of no_of_hrs_worked & pay_per_hour 4. Calculate weekly pay weekly_pay = no_of_hrs_worked * pay_per_hour 5. Print value stored in weekly_pay 6. End
  • 26. Thanks! Any questions? You can find me at: ✗ nuzhatmemon.com ✗ nuzhat.memon@gmail.com 26
  翻译: