Академический Документы
Профессиональный Документы
Культура Документы
Different steps in solving a problem Writing a computer program involves performing the following tasks. 1. Understanding the problem
End Show
IT Department - National Institute of Education
Problem :
Add two numbers and display total.
End Show
IT Department - National Institute of Education
End Show
IT Department - National Institute of Education
Find outputs ?
Total.
So there must be some calculation to get the total. That is Process.
End Show
IT Department - National Institute of Education
End Show
IT Department - National Institute of Education
A Graphical representation of making a cup of tea Start Boil water Put tea powder to mug Add some sugar Serve Stop This Representation is called as Flow Chart
End Show
Flowchart
A graphical representation of the sequence of operations in a program is called Flow Chart.
End Show
IT Department - National Institute of Education
Yes
No
End Show
IT Department - National Institute of Education
Calculate total
Display total
Stop
End Show
Input Age
Adult
Yes If age>=18
No
child
Stop
IT Department - National Institute of Education
End Show
Yes
No
Wait
Stop
End Show
Draw a flow chart to find the correct key from a bunch keys to open the door.
Start
Tryout a key
Yes
Stop
IT Department - National Institute of Education
End Show
Problem Solving 1
End Show
IT Department - National Institute of Education
Conti..
Start
Input Name, Maths Mks , Science Mks
Display Name,Total
Problem Solving 2
Draw Flow chat to input Average Marks and display Pass or fail
(If Average>= 60 , Pass otherwise Fail)
End Show
IT Department - National Institute of Education
Start
Input Average
Yes
If Avg>=60
No
PASS
FAIL
Display Grade
End Show
Problem Solving 3 Draw a flow chart to input Average Marks and find the grade according to the grade System given below.
75 - 100 65 - 74 55 - 64 45 - 54 0 - 44 A B C S F
End Show
IT Department - National Institute of Education
Start
Input Avg
If Avg>=75
No
Yes
Display A
If Avg>=65
No
Yes
Display B
If Avg>=55
No
Yes
Display C
If Avg>=45
No
Yes
Display S
Display F
End Show
Stop
IT Department - National Institute of Education
No
Number=Number+1
Yes
Print Number Stop End Show
IT Department - National Institute of Education
Pseudo Code
End Show
IT Department - National Institute of Education
Begin
Input first number and second number Total = first Number + Second Number output Total End.
End Show
IT Department - National Institute of Education
Write a pseudo code to take maths and science marks , calculate total, average and display grade. (If average >=60, Pass otherwise Fail. Begin Input Maths Marks ,Science Marks Total = Maths + Science Average = Total / 2 If Average >= 60 then Grade= PASS Else Grade= FAIL End if Display Total , Average , Grade End
IT Department - National Institute of Education
End Show
Write a pseudo code to input Average Marks and find the grade according to the grade System given below.
75 - 100 65 - 74 55 - 64 45 - 54 0 - 44 A B C S F
End Show
IT Department - National Institute of Education
Begin Input Avg Mks If Avg >=75 then Grade = A Else If Avg >=65 then Grade = B Else If Avg >=55 then Grade = C Else If Avg >= 45 then Grade = S Else Grade = W End if End if End if End if Display Grade End
IT Department - National Institute of Education
End Show
Begin
Number=1 Do While Number <=10 Print Number Number=Number + 1 End while End
End Show
IT Department - National Institute of Education