Answered step by step
Verified Expert Solution
Question
1 Approved Answer
b) PROBLEM STATEMENT:- Perform white box testing of given programs using path coverage method Program: #include #include Statement Statement number 1 2 void main() {
b) PROBLEM STATEMENT:- Perform white box testing of given programs using path coverage method Program: #include #include Statement Statement number 1 2 void main() { float bill_amt = 20.0; float charges; int units; cout>units; if(units>units units #include Statement Statement number 1 void main({ 2 int year,rem_4,rem_100, rem_400; 3 printf("Enter the year to be tested"); scanf("%d", &year); 4 5 6 7 8 9 10 11 12 rem_4=year%4;//5 rem_100=year%100;//6 rem_400=year%400;//7 if((rem_4 == 0 && rem_100 != 0)|| rem_400==0)//8 printf("It is a leap year. ");//9 else//10 printf(" It is not a leap year. ");//11 getch();//12 } e) Condition coverage F F rem_4 == 0 rem_100 != 0 rem_400==0 Input value Possible outcome Lines executed F F F 1175 T NA F T F 600 F T T NA T F F 100 T F T 2000 T T F 396 T T T NA
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started