1. Question:What should we do in the "Defining the Problem" phase of the programming process? 

    Answer
    1. Prepare the statement of the desired output (results to be produced by the program). the statement should be writing so that misunderstandings can be minimized. 
    2. A description of what the output is to look like.
    3. The input (data to be processed) must also be documented as a part of the problem definition.
    4. The solutions to some problems involve complex calculations. These must also be described in details as part of the problem definition.






    1. Report
  2. Question:Describe the following outline: 1. Process outline 2. Input/Output outline 3. Decision outline 

    Answer
    Figure: Process OutlineProcess Outline: Represents any manipulation of data, such as arithmetic operations or movement of data from one place to another or any initialization of data.Figure: Input/Output OutlineInput/Output Outline: Represents any data input or output operation.Figure: Decision OutlineDecision Outline: Represents the comparison of two values. Alternative courses of action can be taken according to whether the first value is greater than, less than, or equal to the second value.






    1. Report
  3. Question:How do you evaluate Boolean expressions without any parentheses? 

    Answer
    We have to evaluate as follows:
    
    1. All NOTs are evaluates first.
    2. All ANDs are evaluates next.
    3. Finally, all ORs are evaluated.






    1. Report
  4. Question:Prove that: A AND (B OR C) = (A AND B) OR (A AND C) 

    Answer
    ABCB OR CA AND (B OR C)A AND BA AND C(A AND B) OR (A AND C)
    FFFFFFFF
    FFTTFFFF
    FTFTFFFF
    FTTTFFFF
    TFFFFFFF
    TFTTTFTT
    TTFTTTFT
    TTTTTTTT






    1. Report
  5. Question:Prove that: NOT (A AND B) = NOT A OR NOT B 

    Answer
    ABA AND BNOT (A AND B)NOT ANOT BNOT A OR NOT B
    FFFTTTT
    FTFTTFT
    TFFTFTT
    TTTFFFF






    1. Report
Copyright © 2025. Powered by Intellect Software Ltd