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 06:30
Exchanging which type of data uses the least bandwidth? music photographs video voice bandwidth- the amount of data that can be moved between two points in a set time period
Answers: 1
question
Computers and Technology, 22.06.2019 21:30
Im doing this last minute and literally none of my neighbors or people that my dad works with use excel so if anyone could me make up an example
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
What is html ? give a small description about html
Answers: 2
question
Computers and Technology, 23.06.2019 15:00
Plz ( which is an example of a good url?
Answers: 1
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, 08.05.2021 02:30
question
Mathematics, 08.05.2021 02:30
question
Mathematics, 08.05.2021 02:30
Questions on the website: 13722367