Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

KIET Group of Institutions, Ghaziabad

Department of Computer Science


Subject: Software Engineering
Assignment-3

1. Consider a software system that has been in use for several years and requires
maintenance due to changing user requirements and bug fixes and calculate the cost
and effort of the following scenario:
Initial Development:
The initial development of the software system cost $500,000.
The effort put into the initial development was 10 person-months.
Yearly Maintenance:
Each year, there are maintenance activities, including bug fixes and minor feature
enhancements.
The annual maintenance cost is estimated to be 20% of the initial development cost,
i.e., $100,000 per year.
The yearly effort required for maintenance is 2 person-months.
Extended Period:
Let's consider the software is expected to be in use for 5 years.

2. Suppose a project was estimated to be 400 KLOC. Calculate the effort and
development time for each of the three model i.e., organic, semi-detached &
embedded.

3. A project size of 200 KLOC is to be developed. Software development team has


average experience on similar type of projects. The project schedule is not very tight.
Calculate the Effort, development time, average staff size, and productivity of the
project.

4. If you are a new customer and you want to open a credit card account then there are
three conditions first you will get a 15% discount on all your purchases today, second
if you are an existing customer and you hold a loyalty card, you get a 10% discount
and third if you have a coupon, you can get 20% off today (but it can’t be used with
the ‘new customer’ discount). Discount amounts are added, if applicable.

Write down all different test cases using boundary value analysis to check the above
conditions.
5. The Customer owns a website that contains information about the concerts held in its
venues. To enhance the website capabilities, the Customer developed a digital
ticketing module that was supposed to work the following way: when a visitor buys a
ticket on the Customer’s website, they receive an email with a link to the digital
ticket. Once a visitor arrives at the concert venue, they access the link with the digital
ticket and receive a QR code. Visitors can then scan the QR code and enter the venue.

To ensure stable performance of the digital ticketing software, the Customer wanted
to check if the website could handle 4,500 visitors simultaneously gaining access to
their tickets for 30 minutes, plus another 50 visitors browsing the website at the same
time.
Draw the decision table for the given case study.
-:ANSWERS:-

1. Cost and Effort Calculation for Software Maintenance:


- Initial Development Cost: $500,000
- Initial Development Effort: 10 person-months
- Annual Maintenance Cost: 20% of initial development cost = $100,000
- Annual Maintenance Effort: 2 person-months
- Extended Period: 5 years

Cost Calculation:
- Total Maintenance Cost over 5 years = Annual Maintenance Cost * Number of Years
= $100,000 * 5 = $500,000
- Total Cost (Initial Development + Maintenance) = Initial Development Cost + Total
Maintenance Cost
= $500,000 + $500,000 = $1,000,000

Effort Calculation:
- Total Maintenance Effort over 5 years = Annual Maintenance Effort * Number of Years
= 2 person-months * 5 = 10 person-months
- Total Effort (Initial Development + Maintenance) = Initial Development Effort + Total
Maintenance Effort
= 10 person-months + 10 person-months = 20 person-months

2. Effort and Development Time Calculation for Different Models:


- Organic Model:
- Effort = 2.4 * (KLOC)^1.05
- Development Time = 2.5 * (Effort)^0.38
- Semi-Detached Model:
- Effort = 3.0 * (KLOC)^1.12
- Development Time = 2.5 * (Effort)^0.35
- Embedded Model:
- Effort = 3.6 * (KLOC)^1.20
- Development Time = 2.5 * (Effort)^0.32

3. Effort, Development Time, Average Staff Size, and Productivity Calculation:


- Project Size: 200 KLOC
- Average Experience: Average for similar projects
- Schedule: Not very tight

Effort Calculation:
- Effort = 3.0 * (200)^1.12 = 3.0 * 383.7 = 1151.1 person-months
- Development Time = 2.5 * (1151.1)^0.35 = 2.5 * 33.9 = 84.75 months

Average Staff Size:


- Average Staff Size = Effort / Development Time = 1151.1 / 84.75 ≈ 13.58 (assuming
fractional staff can't work, round it up to 14)

Productivity:
- Productivity = Project Size / Effort = 200 KLOC / 1151.1 person-months ≈ 0.174
KLOC/person-month

4. Boundary Value Analysis Test Cases for Credit Card Account Opening:
- Test Case 1: New customer, purchases > $0 but < $100 (Boundary value)
- Test Case 2: New customer, purchases = $100
- Test Case 3: New customer, purchases > $100 (Boundary value)
- Test Case 4: Existing customer with loyalty card, purchases > $0 but < $100 (Boundary
value)
- Test Case 5: Existing customer with loyalty card, purchases = $100
- Test Case 6: Existing customer with loyalty card, purchases > $100 (Boundary value)
- Test Case 7: Customer with coupon, purchases > $0 but < $100 (Boundary value)
- Test Case 8: Customer with coupon, purchases = $100
- Test Case 9: Customer with coupon, purchases > $100 (Boundary value)

5. Decision Table for Digital Ticketing Module:

This decision table covers all possible scenarios based on the number of visitors buying
tickets and browsing the website simultaneously. Each cell in the table represents the
actions to be taken based on the conditions.

You might also like