run this program and do simple question

byorv20n7

Consider the pseudo-code below for computing insurance premium.

(i) Draw the program graph

(ii) Compute the cyclomatic complexity

(iii) Derive a set of basis paths that can be used to test the program

(iv) Given that the baseRate is $500.00, create the test cases that will exercise all the branches for switch case C4 only. The test cases should show the inputs, the path taken and the expected output. [Hint: There should be only two test cases.]

 

 

below is the file of java run it

https://www.dropbox.com/s/5bygdk7ba3owf7d/Main.java?dl=0

  • 9 years ago
  • 3
Answer(0)
Bids(0)