Showing posts with label AKTU Exam 2023-24. Show all posts
Showing posts with label AKTU Exam 2023-24. Show all posts

What is a Flowchart? Properties and Flowchart to Check Buzz Number in C Programming


What is a Flowchart?

A flowchart is a graphical representation of an algorithm or process using different symbols such as rectangles, diamonds, ovals, and arrows to show the flow of control step by step.

Flowcharts are widely used in programming, system design, and process documentation because they help visualize logic clearly and intuitively.



Standard Flowchart Symbols

Symbol Shape Use
Start/End Oval Denotes the beginning or end of the flowchart.
Process Rectangle Represents an action, process, or instruction.
Decision Diamond Used for branching based on yes/no or true/false conditions.
Input/Output Parallelogram Indicates data input or output operations.
Flow Lines Arrows Show the direction of control flow between symbols.
Connector Small Circle Connects different parts of flowchart, especially when diagram continues on another page.



Properties of a Good Flowchart

  1. Clarity: It should be easily understandable with well-defined symbols and logical flow.

  2. Logical Sequence: The process should proceed in proper sequence from start to end.

  3. Standard Symbols: Use standard symbols (rectangle for process, diamond for decision, etc.) accepted in flowchart conventions.

  4. Flow Lines: Use arrows to clearly show the direction of flow from one step to another.

  5. Simplicity: Keep it simple and avoid unnecessary details.

  6. Modularity: Break complex processes into sub-processes or separate flowcharts if needed.


Buzz Number Definition

A number is called a Buzz Number if:

  • It ends with digit 7, or

  • It is divisible by 7.

Flowchart to Check Buzz Number




Sample C Program

#include <stdio.h>

int main() {
    int num;
    printf("Enter a number: ");
    scanf("%d", &num);

    if (num % 10 == 7 || num % 7 == 0)
        printf("%d is a Buzz number.\n", num);
    else
        printf("%d is not a Buzz number.\n", num);

    return 0;
}

Summary

  • Flowchart: Visual tool using standard symbols to describe an algorithm.

  • Properties: Clear, logical, uses proper symbols, and arrows.

  • Buzz Number: Ends with 7 or divisible by 7.

  • Symbols: Oval (start/end), rectangle (process), diamond (decision), parallelogram (I/O), arrows (flow).


If you found this post helpful, share and explore our other blogs for detailed solutions on PPS with C exam questions!