Important Notice:

Decision-Based Processing

Decision-Based Processing

3 views 1 min read

Decision-Based Processing (निर्णय आधारित प्रसंस्करण) :-

Decision-Based Processing (निर्णय आधारित प्रसंस्करण) वह प्रक्रिया है जिसमें किसी Condition (शर्त) को check(जाँच )किया जाता है। 
यदि शर्त True (सही) होती है तो एक कार्य (Action) किया जाता है, और यदि False (गलत) होती है तो दूसरा कार्य किया जाता है।

इस प्रकार के Processing में Decision (निर्णय) लेने के लिए If, If-Else, Else-If जैसी संरचनाओं का उपयोग किया जाता है।

उदाहरण (Example):

यदि किसी छात्र के अंक 40 या उससे अधिक हैं, तो "Pass" प्रदर्शित करें, अन्यथा "Fail" प्रदर्शित करें।

Algorithm :-

  1. Start
  2. Input marks M.
  3. Check whether M ≥ 40.
  4. If True, display "PASS".
  5. Otherwise, display "FAIL".
  6. Stop.

Flow chart :-  English

Decision-Based Processing is a type of processing in which a condition is checked before executing instructions.

If the condition is True, one set of instructions is executed. If the condition is False, another set of instructions is executed.

This type of processing uses If, If-Else, and Else-If statements to make decisions.

Example:

If a student's marks are 40 or more, display "Pass"; otherwise, display "Fail".

Algorithm :-

  1. Start
  2. Input marks M.
  3. Check whether M ≥ 40.
  4. If True, display "PASS".
  5. Otherwise, display "FAIL".
  6. Stop.

Related Notes