Skip to main content
deleted 168 characters in body
Source Link
if field is blank or in form
print "enter again"
else
  if no credit and debit < 1000
  print "less amount"
  else
  print "accessed"
  end if
end if

I'm very confused in calculating the cyclomatic complexity. For the above program, I get the answer as 3, as there are two conditions and V(G)=P+1=2+1=3. But the answer is incorrect. I get the same problem in this flowchart too.

I also need help with the above flowchart's mccabe's number.

if field is blank or in form
print "enter again"
else
  if no credit and debit < 1000
  print "less amount"
  else
  print "accessed"
  end if
end if

I'm very confused in calculating the cyclomatic complexity. For the above program, I get the answer as 3, as there are two conditions and V(G)=P+1=2+1=3. But the answer is incorrect. I get the same problem in this flowchart too.

I also need help with the above flowchart's mccabe's number.

if field is blank or in form
print "enter again"
else
  if no credit and debit < 1000
  print "less amount"
  else
  print "accessed"
  end if
end if

I'm very confused in calculating the cyclomatic complexity. For the above program, I get the answer as 3, as there are two conditions and V(G)=P+1=2+1=3. But the answer is incorrect.

added 62 characters in body
Source Link
if field is blank or in form
print "enter again"
else
  if no credit and debit < 1000
  print "less amount"
  else
  print "accessed"
  end if
end if

I'm very confused in calculating the cyclomatic complexity. For the above program, I get the answer as 3, as there are two conditions and V(G)=P+1=2+1=3. But the answer is incorrect. I get the same problem in this flowchart too.

I also need help with the above flowchart's mccabe's number.

if field is blank or in form
print "enter again"
else
  if no credit and debit < 1000
  print "less amount"
  else
  print "accessed"
  end if
end if

I'm very confused in calculating the cyclomatic complexity. For the above program, I get the answer as 3, as there are two conditions and V(G)=P+1=2+1=3. But the answer is incorrect. I get the same problem in this flowchart too.

if field is blank or in form
print "enter again"
else
  if no credit and debit < 1000
  print "less amount"
  else
  print "accessed"
  end if
end if

I'm very confused in calculating the cyclomatic complexity. For the above program, I get the answer as 3, as there are two conditions and V(G)=P+1=2+1=3. But the answer is incorrect. I get the same problem in this flowchart too.

I also need help with the above flowchart's mccabe's number.

Source Link

Calculating cyclomatic complexity/ mccab's number

if field is blank or in form
print "enter again"
else
  if no credit and debit < 1000
  print "less amount"
  else
  print "accessed"
  end if
end if

I'm very confused in calculating the cyclomatic complexity. For the above program, I get the answer as 3, as there are two conditions and V(G)=P+1=2+1=3. But the answer is incorrect. I get the same problem in this flowchart too.