Essential Knowledge
- Procedure -is a named group of programming instructions that serves a purpose
- How to code Procedures -While Coding a procedure you must makes sure it has as name and a clear purpose weather to executre a response or complete an action
How do we make our procedure purposeful and consice
- to make a procedure serve a purpose it should be able to hae multiple functions
- Also to keep a procedure maximizing capability it should be simple and reduced to get the final result
What is important to do while writing procedures
- It is important to understand you procudeures procedure does when creating one as it will help you create a impactful procedure
Procedure That Update Grade Based on retake
- after you take a quiz your teacher lets you retake it for full credit in which your are able to replace your grade
- TEST WITH first quiz GRADE is 40% and second is 90%
- PROCEDURE updateGRADE { points, current grade,new grade
- currentGrade = current points /75
- currentGrade = current crade * 100
- if currentGrade > quizGrade
- return currentGrade
- }