Download presentation
Presentation is loading. Please wait.
Published byAbigail Estella Ryan Modified over 9 years ago
1
Flowcharts! January 13, 2005 These are today’s notes! Do you think we will get more snow?
2
Flowcharts! Definition: Charts used to plan and to document program code. How? A flowchart uses symbols and shapes connected by lines to illustrate the steps of a program.
3
Symbols & Shapes? Rectangle – use the rectangle for processing data or for taking action.
4
Diamond – Use the diamond for making decisions. Yes No
5
Input/Output symbol (parallelogram) – Use this symbol to show that something is input or output.
6
Example: A grade program that checks if the grade is greater than or equal to 60. If yes, a message box is printed saying that the student has passed. If grade >= 60 then MsgBox(“Passed!”) End If Grade >= 60? MsgBox Passed
7
Example A grade program that checks if the grade is greater than or equal to 60. If yes, a message box is printed saying that the student has passed. If grade is less than 60 a message box saying student failed! If grade >= 60 then MsgBox(“Passed!”) Else MsgBox (“Failed!”) End If Grade >= 60? MsgBox Passed! MsgBox Failed! No Yes
8
Tomorrow’s Assignment! Create a Visual Basic Program for a teacher to enter a student’s grade and it should give the teacher a message whether the student passed or failed. Hint: You need to use an If…Else statement! See your notes.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.