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