Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please answer all the parts of the qustion and include a drawing of the control flow graph as asked in the qustion thank you. Question

please answer all the parts of the qustion and include a drawing of the control flow graph as asked in the qustion thank you.
image text in transcribed
image text in transcribed
Question 5: [CLO 5]: Software Testing [11 points] Part a: Consider the following code segment: if ( status = = "MARRIED" \&\& no_children !=0 ) i std ded =20000+ no children 5000; \} else if (status = = "MARRIED" \& \& no children ==0) if (spouse_status == "UNCLAIMED") std_de d=15000; else std ded =0; else std ded =7500; a. 2 What is the McCabe's cyclomatic complexity (CC) of the resulting CFG? [1 point] a. 3 Specify the independent paths: [2 point]

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_2

Step: 3

blur-text-image_3

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

Handbook Of Database Security Applications And Trends

Authors: Michael Gertz, Sushil Jajodia

1st Edition

1441943056, 978-1441943057

More Books

Students also viewed these Databases questions