Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

use the code. to solve Number 1,2 and 3 (15 pts) 1. Draw the program graph. You must use line numbers to label all nodes

image text in transcribed

image text in transcribed

use the code. to solve Number 1,2 and 3

(15 pts) 1. Draw the program graph. You must use line numbers to label all nodes in the graph. Do not use the statements or statement fragments themselves as nodes labels (5 pts) 2. Compute the cyclomatic number using each of the three methods discussed in class. Show your work. (5 pts) 3. Calculate the P" using the given conditions under each problem. Show your work. Problem 2: 1 void Q20 S1; for(S2;C1;S3) if(C2)K S4 S5; if(c3)X S6 10 else S7 12 13 14 15 16 17 S8; S9; For P, suppose the for loop defined by Line 3 is executed exactly 3 times (15 pts) 1. Draw the program graph. You must use line numbers to label all nodes in the graph. Do not use the statements or statement fragments themselves as nodes labels (5 pts) 2. Compute the cyclomatic number using each of the three methods discussed in class. Show your work. (5 pts) 3. Calculate the P" using the given conditions under each problem. Show your work. Problem 2: 1 void Q20 S1; for(S2;C1;S3) if(C2)K S4 S5; if(c3)X S6 10 else S7 12 13 14 15 16 17 S8; S9; For P, suppose the for loop defined by Line 3 is executed exactly 3 times

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Postgresql 16 Administration Cookbook Solve Real World Database Administration Challenges With 180+ Practical Recipes And Best Practices

Authors: Gianni Ciolli ,Boriss Mejias ,Jimmy Angelakos ,Vibhor Kumar ,Simon Riggs

1st Edition

1835460585, 978-1835460580

More Books

Students also viewed these Databases questions