SlideShare a Scribd company logo
1 of 10
Download to read offline
HNDIT1103
BAT/IT/2016/F/0015
1.To calculate s=(a+b+c)/y
Begin
Read a,b,c,y
S = (a+b+c)/y
Display S
End
2.To convert from Celsius to Fahrenheit
Begin
Read cel
Fahrenheit = 1.8 * cel + 32
Display Fahrenheit
End
Start
Input a,b,c,y
S= (a+b+c)/y
Output S
Stop
Start
Input cel
Fah = 1.8 * cel + 32
Output Fah
Stop
3.To read a marks from student and display “pass” if
the marks greater than or equal to 50. “fail”
otherwise.
Begin
Read marks
If marks > 100 Then
Display “Error”
Else:
If marks >= 50 Then
Display “Pass”
Else:
Display “Fail”
End if
End if
End
Start
Input marks
Output “Fail”
If
mark>
100
No
If
mark
>=50
Output “Pass”
Yes
Output “Error”
Yes
Stop
No
4.To read 3 numbers from user and display maximum.
Begin
Read x,y,z
If x > y Then
If x > z Then
Display x
Else:
Display z
Else:
If y > z Then
Display y
` Else:
Display z
End if
End if
End if
End
Start
If x
> y
No
If x
> z
Yes
Stop
No
If y
> z
Input x,y,z
xy
zz
Yes
No
Yes
5.To read any 10 numbers and display the total and
average.
Begin
C = 0
Tot = 0
Avg = 0
While C < 10 Then
Read num
Tot = num + Tot
C = C + 1
End while
Avg = Tot / 10
Display Avg
Display Tot
End
Start
Input num
Yes
C = 0
Tot = 0, Avg = 0
While
C < 10
Tot = num + Tot
C = C +1
No
Avg = Tot / 10
Output Tot, Avg
Stop
6.To accept numbers until the user enters a “o” and
output the sum of the given numbers.
`Begin
T = 0
Read n
While n != 0 Then
T = T + n
Read n
End while
Display T
End
Start
T = 0
Input n
While
n != 0
No
Yes
T = T + n
Input n
Output T
Stop
7.To read any 10 numbers from user and display the
maximum
Begin
C = 1
Max = 0
Read num1
Max = num1
While c < 10 Then
Read num2
If num2 > Max Then
Max = num2
C = C + 1
End while
Display Mas
End
Yes
Stop
Start
c = 1, Max = 0
Input num1
While
c < 10
Max = num1
Read num2
If
num2
> Max
Max = num1
c = c +1
No
Yes
No
Output Max
8.To output the number of even numbers among the
users entered by the user
Begin
C = 0
Read ran_num
If ran_num > 0 Then
While C < ran_num Then
C = C + 2
Display C
End while
Else:
Display “Invalid entry”
End if
End
Stop
Input ran_num
Yes
Start
c = 0
If
ran_num
> 0
While c <
ran_num
Yes
c = c + 2
Output c
No
Invalid Entry
No
Flow chart and pseudo code

More Related Content

What's hot

8.2 approach in problem solving (9 hour)
8.2 approach in problem solving (9 hour)8.2 approach in problem solving (9 hour)
8.2 approach in problem solving (9 hour)
Fiqry Suryansyah
 

What's hot (20)

ICT Flowchart and Pseudo codes
ICT Flowchart and Pseudo codes ICT Flowchart and Pseudo codes
ICT Flowchart and Pseudo codes
 
Presentation on C++ Programming Language
Presentation on C++ Programming LanguagePresentation on C++ Programming Language
Presentation on C++ Programming Language
 
Pseudocode
PseudocodePseudocode
Pseudocode
 
Ethical and Social Issues in ICT
Ethical and Social Issues in ICTEthical and Social Issues in ICT
Ethical and Social Issues in ICT
 
8.2 approach in problem solving (9 hour)
8.2 approach in problem solving (9 hour)8.2 approach in problem solving (9 hour)
8.2 approach in problem solving (9 hour)
 
pseudocode and Flowchart
pseudocode and Flowchartpseudocode and Flowchart
pseudocode and Flowchart
 
C++ Problem solving
C++ Problem solvingC++ Problem solving
C++ Problem solving
 
Conditional statement c++
Conditional statement c++Conditional statement c++
Conditional statement c++
 
SOP POS, Minterm and Maxterm
SOP POS, Minterm and MaxtermSOP POS, Minterm and Maxterm
SOP POS, Minterm and Maxterm
 
Basics of c++ Programming Language
Basics of c++ Programming LanguageBasics of c++ Programming Language
Basics of c++ Programming Language
 
Programming in c
Programming in cProgramming in c
Programming in c
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
 
Python Control structures
Python Control structuresPython Control structures
Python Control structures
 
Algorithms and flowcharts
Algorithms and flowchartsAlgorithms and flowcharts
Algorithms and flowcharts
 
The Three Basic Selection Structures in C++ Programming Concepts
The Three Basic Selection Structures in C++ Programming ConceptsThe Three Basic Selection Structures in C++ Programming Concepts
The Three Basic Selection Structures in C++ Programming Concepts
 
C if else
C if elseC if else
C if else
 
Polymorphism in c++(ppt)
Polymorphism in c++(ppt)Polymorphism in c++(ppt)
Polymorphism in c++(ppt)
 
Algorithm and Programming (Introduction of Algorithms)
Algorithm and Programming (Introduction of Algorithms)Algorithm and Programming (Introduction of Algorithms)
Algorithm and Programming (Introduction of Algorithms)
 
Loops c++
Loops c++Loops c++
Loops c++
 
C programming presentation for university
C programming presentation for universityC programming presentation for university
C programming presentation for university
 

Viewers also liked (15)

pseudo code
pseudo codepseudo code
pseudo code
 
10 data structures
10 data structures10 data structures
10 data structures
 
Pseudo code
Pseudo codePseudo code
Pseudo code
 
Total oop in c# dot net
Total oop in c# dot netTotal oop in c# dot net
Total oop in c# dot net
 
5 problem solving with the sequential logic structure
5 problem solving with the sequential logic structure5 problem solving with the sequential logic structure
5 problem solving with the sequential logic structure
 
6 problem solving with decisions
6 problem solving with decisions6 problem solving with decisions
6 problem solving with decisions
 
C++ in sinhala
C++ in sinhalaC++ in sinhala
C++ in sinhala
 
7 problem solving with loops
7 problem solving with loops7 problem solving with loops
7 problem solving with loops
 
Cmp104 lec 7 algorithm and flowcharts
Cmp104 lec 7 algorithm and flowchartsCmp104 lec 7 algorithm and flowcharts
Cmp104 lec 7 algorithm and flowcharts
 
Algorithms
AlgorithmsAlgorithms
Algorithms
 
Algorithm and pseudo codes
Algorithm and pseudo codesAlgorithm and pseudo codes
Algorithm and pseudo codes
 
Pseudo code
Pseudo codePseudo code
Pseudo code
 
Introduction to Pseudocode
Introduction to PseudocodeIntroduction to Pseudocode
Introduction to Pseudocode
 
Pseudocode flowcharts
Pseudocode flowchartsPseudocode flowcharts
Pseudocode flowcharts
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 

Similar to Flow chart and pseudo code

ICT_Seminar_flow_charts_for_2013_Nov.pptx
ICT_Seminar_flow_charts_for_2013_Nov.pptxICT_Seminar_flow_charts_for_2013_Nov.pptx
ICT_Seminar_flow_charts_for_2013_Nov.pptx
ssuser2f67c91
 
C code This program will calculate the sum of 10 positive .docx
 C code This program will calculate the sum of 10 positive .docx C code This program will calculate the sum of 10 positive .docx
C code This program will calculate the sum of 10 positive .docx
aryan532920
 

Similar to Flow chart and pseudo code (20)

UNIT I - Algorithmic Problem Solving.pptx
UNIT I - Algorithmic Problem Solving.pptxUNIT I - Algorithmic Problem Solving.pptx
UNIT I - Algorithmic Problem Solving.pptx
 
ICT_Seminar_flow_charts_for_2013_Nov.pptx
ICT_Seminar_flow_charts_for_2013_Nov.pptxICT_Seminar_flow_charts_for_2013_Nov.pptx
ICT_Seminar_flow_charts_for_2013_Nov.pptx
 
C code This program will calculate the sum of 10 positive .docx
 C code This program will calculate the sum of 10 positive .docx C code This program will calculate the sum of 10 positive .docx
C code This program will calculate the sum of 10 positive .docx
 
Pa1 flow chart
Pa1 flow chartPa1 flow chart
Pa1 flow chart
 
Algorithm
AlgorithmAlgorithm
Algorithm
 
Csci101 lect03 algorithms_i
Csci101 lect03 algorithms_iCsci101 lect03 algorithms_i
Csci101 lect03 algorithms_i
 
C Programming
C ProgrammingC Programming
C Programming
 
algorithm
algorithmalgorithm
algorithm
 
Pa1 wednesday flow_chart
Pa1 wednesday flow_chartPa1 wednesday flow_chart
Pa1 wednesday flow_chart
 
Programming for Problem Solving
Programming for Problem SolvingProgramming for Problem Solving
Programming for Problem Solving
 
Core programming in c
Core programming in cCore programming in c
Core programming in c
 
C Programming Lab.pdf
C Programming Lab.pdfC Programming Lab.pdf
C Programming Lab.pdf
 
C lab-programs
C lab-programsC lab-programs
C lab-programs
 
C++ Tutorial.docx
C++ Tutorial.docxC++ Tutorial.docx
C++ Tutorial.docx
 
Flowchart and algorithm
Flowchart and algorithmFlowchart and algorithm
Flowchart and algorithm
 
SPL 2 | Algorithms, Pseudo-code, and Flowchart
SPL 2 | Algorithms, Pseudo-code, and FlowchartSPL 2 | Algorithms, Pseudo-code, and Flowchart
SPL 2 | Algorithms, Pseudo-code, and Flowchart
 
C Programming
C ProgrammingC Programming
C Programming
 
Programming egs
Programming egs Programming egs
Programming egs
 
25422733 c-programming-and-data-structures-lab-manual
25422733 c-programming-and-data-structures-lab-manual25422733 c-programming-and-data-structures-lab-manual
25422733 c-programming-and-data-structures-lab-manual
 
C++ in 10 Hours.pdf.pdf
C++ in 10 Hours.pdf.pdfC++ in 10 Hours.pdf.pdf
C++ in 10 Hours.pdf.pdf
 

More from Niva tharan

More from Niva tharan (14)

EB - Making presentation Step By step
EB - Making presentation Step By stepEB - Making presentation Step By step
EB - Making presentation Step By step
 
Zoom basic Setup | Module
Zoom basic Setup | ModuleZoom basic Setup | Module
Zoom basic Setup | Module
 
Word, excel, and power point tutorial in Tamil
Word, excel, and power point tutorial in TamilWord, excel, and power point tutorial in Tamil
Word, excel, and power point tutorial in Tamil
 
Motive the students to handle the mouse effectively | Action research proposal
Motive the students to handle the mouse effectively | Action research proposalMotive the students to handle the mouse effectively | Action research proposal
Motive the students to handle the mouse effectively | Action research proposal
 
Motivate the students to handle the mouse effectively | Action Research | Pre...
Motivate the students to handle the mouse effectively | Action Research | Pre...Motivate the students to handle the mouse effectively | Action Research | Pre...
Motivate the students to handle the mouse effectively | Action Research | Pre...
 
Health care workshop | Individual project report
Health care workshop | Individual project reportHealth care workshop | Individual project report
Health care workshop | Individual project report
 
Health care workshop | Individual project proposal
Health care workshop | Individual project proposalHealth care workshop | Individual project proposal
Health care workshop | Individual project proposal
 
Leadership program | Project Report
Leadership program | Project Report Leadership program | Project Report
Leadership program | Project Report
 
Leadership Program | Project Proposal
Leadership Program | Project ProposalLeadership Program | Project Proposal
Leadership Program | Project Proposal
 
Shutdown computer Tricks
Shutdown computer TricksShutdown computer Tricks
Shutdown computer Tricks
 
LAN Proposal
LAN Proposal LAN Proposal
LAN Proposal
 
Iot
IotIot
Iot
 
Cloud computing
Cloud computingCloud computing
Cloud computing
 
Power poinrt view+animation+transision
Power poinrt view+animation+transisionPower poinrt view+animation+transision
Power poinrt view+animation+transision
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 

Flow chart and pseudo code

  • 2.
  • 3. 1.To calculate s=(a+b+c)/y Begin Read a,b,c,y S = (a+b+c)/y Display S End 2.To convert from Celsius to Fahrenheit Begin Read cel Fahrenheit = 1.8 * cel + 32 Display Fahrenheit End Start Input a,b,c,y S= (a+b+c)/y Output S Stop Start Input cel Fah = 1.8 * cel + 32 Output Fah Stop
  • 4. 3.To read a marks from student and display “pass” if the marks greater than or equal to 50. “fail” otherwise. Begin Read marks If marks > 100 Then Display “Error” Else: If marks >= 50 Then Display “Pass” Else: Display “Fail” End if End if End Start Input marks Output “Fail” If mark> 100 No If mark >=50 Output “Pass” Yes Output “Error” Yes Stop No
  • 5. 4.To read 3 numbers from user and display maximum. Begin Read x,y,z If x > y Then If x > z Then Display x Else: Display z Else: If y > z Then Display y ` Else: Display z End if End if End if End Start If x > y No If x > z Yes Stop No If y > z Input x,y,z xy zz Yes No Yes
  • 6. 5.To read any 10 numbers and display the total and average. Begin C = 0 Tot = 0 Avg = 0 While C < 10 Then Read num Tot = num + Tot C = C + 1 End while Avg = Tot / 10 Display Avg Display Tot End Start Input num Yes C = 0 Tot = 0, Avg = 0 While C < 10 Tot = num + Tot C = C +1 No Avg = Tot / 10 Output Tot, Avg Stop
  • 7. 6.To accept numbers until the user enters a “o” and output the sum of the given numbers. `Begin T = 0 Read n While n != 0 Then T = T + n Read n End while Display T End Start T = 0 Input n While n != 0 No Yes T = T + n Input n Output T Stop
  • 8. 7.To read any 10 numbers from user and display the maximum Begin C = 1 Max = 0 Read num1 Max = num1 While c < 10 Then Read num2 If num2 > Max Then Max = num2 C = C + 1 End while Display Mas End Yes Stop Start c = 1, Max = 0 Input num1 While c < 10 Max = num1 Read num2 If num2 > Max Max = num1 c = c +1 No Yes No Output Max
  • 9. 8.To output the number of even numbers among the users entered by the user Begin C = 0 Read ran_num If ran_num > 0 Then While C < ran_num Then C = C + 2 Display C End while Else: Display “Invalid entry” End if End Stop Input ran_num Yes Start c = 0 If ran_num > 0 While c < ran_num Yes c = c + 2 Output c No Invalid Entry No