Problem Solving Through C (BCA) 1st Sem Previous Year Solved Question Paper 2022

Practice Mode:
1.

What is a flowchart ? Draw a flowchart to find out total number of students in a class who have scored more than 60%.

Explanation

A flowchart is a visual representation of a process or algorithm that uses different shapes to represent various steps or actions in a sequence. It is commonly used for illustrating the logic of a program or a set of instructions.

  1. Start

  2. Initialize a counter variable (e.g., "count") to 0.

  3. Initialize a variable to store the total number of students (e.g., "total_students").

  4. For each student in the class: 5. Get the student's C language score.

    1. Check if the score is greater than 60%.

    2. If yes, increment the "count" variable by 1.

    3. Increment the "total_students" variable by 1.

    4. Move to the next student.

  5. Check if there are more students to process.

  6. If yes, go back to step 5; if no, proceed to the next step.

  7. Output the "count" variable, which represents the number of students who scored more than 60% in C language.

  8. End

This flowchart begins with "Start," initializes a count variable to zero, and then iterates through each student in the class. It checks their score and increments the count if the score is greater than 60%. Finally, it outputs the count as the total number of students who scored more than 60%.

 

Start

|

v

Initialize count to 0

|

v

For each student in the class:

|

v

Get student's score

|

v

If the score is greater than 60%:

| |

| v

| Increment count by 1

|

v

End of loop

|

v

Output count as the total number of students with more than 60%

|

v

End