Home / Expert Answers / Computer Science / 3-for-the-following-program-answer-following-a-draw-a-control-flow-chart-b-generate-a-control-pa655

(Solved): 3. For the following program answer following. a. Draw a control flow chart. b. Generate a control ...



3. For the following program answer following.
a. Draw a control flow chart.
b. Generate a control flow graph.
c. Generate a

3. For the following program answer following. a. Draw a control flow chart. b. Generate a control flow graph. c. Generate a hybrid flow graph. d. How many test cases are needed to achieve 100 per cent decision coverage? e. What level of decision coverage would be achieved by the single input \( A=-1 \) ? \( \begin{array}{ll}1 & \text { Program Counting numbers } \\ 2 & \\ 3 & \text { A: Integer } \\ 4 & \text { Count: Integer } \\ 5 & \\ 6 & \text { Begin } \\ 7 & \text { Count }=0 \\ 8 & \text { Read A } \\ 9 & \text { While A } \varnothing-1 \\ 10 & \text { Do } \\ 11 & \quad \text { Count }=\text { Count }+1 \\ 12 & \text { Read A } \\ 13 & \text { EndDo } \\ 14 & \\ 15 & \text { Print ("There are", Count, "numbers in the list") } \\ 16 & \text { End }\end{array} \)


We have an Answer from Expert

View Expert Answer

Expert Answer


A control flow chart for this program would be a simple flowchart with a start point, input of A, a while loop that checks if A is not equal to -1, a
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe