Question: Program P1 1) integer A, B; 2) input (A); 3) while (A > 0) 4) { 5) A = 2 * A; 6) if (A

Program P1 1) integer A, B; 2) input (A); 3) while (A > 0) 4) { 5) A = 2 * A; 6) if (A < 20 or A > 30) 7) B = A * 2; 8) else 9) B = A + 2; 10) output (A, B); 11) input (A); 12) } 13) output (Program ends.); 14) end; T = {t1=<34>, t2=<23>, t3=<-1>} or T = {t1=, t2=, t3=}

7. What is the condition domain for P1? Express as line number) condition.

8. What is the condition coverage of T for P1? Express as an unsimplified fraction.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!