subject

Consider the following function: int FactNotFact (int N) { if (N< 0 ) { fac=-1 } else { if (N==0 || N==1){ fac=1 } else { fac=N; K=N-1; while ( k <> 0 ) { fac = fac * k; k = k – 1; } } } Fact=fac; } Answer following questions: i. Using McCabe’s cyclomatic complexity, how many paths are there in this code ii. Develop a set of tests for complete path coverage. iii. Do your tests also provide complete decision, branch and statement coverage

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:40
How do i get the most points, without any effort?
Answers: 2
question
Computers and Technology, 23.06.2019 02:30
People with high self-esteem: accept their strengths and weaknesses. believe that failed experiences are failures of their whole self. feel good about who they are only when they reach total success. need positive external experiences to counteract negative feelings that constantly plague them.
Answers: 1
question
Computers and Technology, 23.06.2019 03:50
Iam a bacterium. i cause stomach cramps and diarrhea. i am caused by eating rotten foodssuch as chicken, fish, or eggs. sometimes turtles carry my bacteria.what am i?
Answers: 2
question
Computers and Technology, 24.06.2019 21:30
Write an algorithm to check if a number is even or odd and show with flow chart step by step
Answers: 2
You know the right answer?
Consider the following function: int FactNotFact (int N) { if (N< 0 ) { fac=-1 } else { if (N==0...
Questions
question
Mathematics, 05.05.2020 10:37
question
Mathematics, 05.05.2020 10:37
question
Mathematics, 05.05.2020 10:37
question
Mathematics, 05.05.2020 10:37
Questions on the website: 13722362