Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following code that accepts two positive integer numbers as inputs. 1. read x, y 2. Result 1= 1 3. Result 2 = 1

image text in transcribedimage text in transcribed
Consider the following code that accepts two positive integer numbers as inputs. 1. read x, y 2. Result 1= 1 3. Result 2 = 1 4. counter = 1 5. repeat 6. result 1= result 1*x 7. counter = counter + 1 8. Until (counter > y) 9. counter = x 10. Do while (counter > 0) 11. result 2= result 2"y 12. counter = counter - 1 13. End Do 14. If (result ] > result 2) 15. then print "x"y is greater than y"x" 16. else print "y"x is greater than x"y" 17. End if 18. EndAssume that the program graph for the above program includes every statement, including the dummy statements such as "End If" and 'End', as separate nodes. How many test data are required for statement coverage ? Oa. 1 b. 2 Oc. 3 Od. 4 Oe.0

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

Modern Database Management

Authors: Heikki Topi, Jeffrey A Hoffer, Ramesh Venkataraman

10th Edition

0132998440, 9780132998444

More Books

Students also viewed these General Management questions

Question

3. Im trying to point out what we need to do to make this happen

Answered: 1 week ago