Design a sentinel algorithm before writing C

A sensor supplies at most 100 integers, each between -100 and 100. A zero ends the sequence; input may instead end at EOF. Count and sum only the positive readings before the first zero. Negative readings are ignored. Print count=K sum=S on one line. Empty input and an immediate zero both produce zero count and zero sum.

    First write language-independent pseudocode. Then describe a flowchart using Start/End, input/output, process and decision nodes, with labelled yes/no arrows. Finally write a C program and dry-run -4, 7, 3, 0, 9; explicitly state whether 9 is processed. The bounded input guarantees the int sum and count fit.


