Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following program: read(x); read(y); if (x>0) then if (y>5) then write (high five); end if; y = y - 5; else x

 

Consider the following program: read(x); read(y); if (x>0) then if (y>5) then write ("high five"); end if; y = y - 5; else x = y + x; end if; 1) Draw the control flow graph (CFG). 2) Give a minimal test set that ensures full statement coverage 3) Label the edges in the CFG, then list all the paths in the CFG. 4) Is there a minimal test set that ensures full path coverage? If so, provide one; otherwise, explain the reasons.

Step by Step Solution

3.42 Rating (149 Votes )

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

Microeconomics An Intuitive Approach with Calculus

Authors: Thomas Nechyba

1st edition

538453257, 978-0538453257

More Books

Students also viewed these Computer Engineering questions

Question

Define intimacy and explain how to develop it in a relationship.

Answered: 1 week ago