Question: Consider the Insurance Premium Case Study presented in Sections 10.3 and 10.4 of the textbook. The Insurance Premium is calculated as the output of the

Consider the Insurance Premium Case Study presented in Sections 10.3 and 10.4 of the textbook. The Insurance Premium is calculated as the output of the software system determined by the two input parameters of DriverAge and DriverPoints. The output variable notInsurable is TRUE if the individual cannot be insured. The Java code and Program Graph for the system are found in Figure 10.9. There are 12 feasible paths through the program code as presented in Table 10.14. Note that line 37 of the program should read: 37. premium = baseRate * ageMultiplier safeDriverReduction; If you find other defects in the program code, report them as part of the answer to this question. Identify 12 Test Cases in the form of (DriverAge, DriverPoints) that would cause execution of the 12 feasible paths. In other words, find a test case for each of the feasible program paths in the form: To execute Path p1, run test case (DriverAge, DriverPoints) with legal integer values for the input parameters. Manually run your test cases and find the resulting output values of the output variables Premium and notInsurable for your 12 test cases.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!