You are on page 1of 7

Assignment

SOFTWARE
QUALITY
ASSUARCE

Hashir Tariq
FA17-BSE-C-133
Q No. 1

9.1 Bhealthy Ltd is a medical insurance company that reimburses the cost of
drugs and various other medical expenses to its customers. According to
current procedures, customers are asked to present receipts of drug purchases
together with the relevant physician prescriptions and other medical
documents. Reimbursement is calculated according to the insurance
agreement stipulations:
■ Two lists of drugs are in effect for the purpose of reimbursement: class A and
class B.
– Class A: 90% of the costs of each purchased drug are reimbursed by Bhealthy
after a minimum customer participation of $5. For example, a $10 drug is
reimbursed by $4.50 and an $85 drug is reimbursed by $72.
– Class B: 50% of the costs of each purchased drug are reimbursed by Bhealthy
(no access).
■ A check is prepared and sent to the customer. The insurance agreement
states the period of 45 days for the company to complete the reimbursement.
■ For some class A drugs the customer should prefer to buy the medications as
a private customer as no reimbursement is expected (the drug’s price is below
$5).The procedure described proved to be very expensive for Bhealthy at the
same time that it provoked much subscriber dissatisfaction. The growth in the
number of subscribers as well as the problems of complying with the current
procedure motivated a new agreement with the licensed pharmacies. The
agreement authorized the licensed pharmacy to deduct the reimbursement
sums from the drug invoices;
Bhealthy will then reimburse the pharmacies monthly for the deducted sums.
Bhealthy decided to prepare a special pharmacy software package that
combines regular pharmacy sales operations with the operations required by
its agreement with the licensed pharmacies and its subscribers.
Consider the invoicing module that prepares invoices for Bhealthy
prescriptions as well as for regular sales of prescriptions and other items at a
licensed pharmacy.
(1) Prepare a flow chart for the module.
(2) Prepare a program flow graph for the module.
(3) Calculate the cyclomatic complexity for the module.
(4) Prepare the maximal set of independent paths according to (3). Document
the basic paths and indicate the added edges of each independent path.
Solution
Q No. 2
Calculate the cyclomatic complexity and specify which
independent paths are needed to test this.

You might also like