0 valutazioniIl 0% ha trovato utile questo documento (0 voti)
37 visualizzazioni4 pagine
The document describes an experiment to write a Java program that implements the Constructive Cost Model (COCOMO) software cost estimation algorithm. The program takes input of number of lines of code and project type (organic, semi-detached, embedded) and outputs the estimated effort, development time, and number of person-months required. The COCOMO model uses regression formulas with parameters derived from historical data to estimate effort based on lines of code and project attributes. The program implements the basic COCOMO equations to calculate effort, development time, and personnel from the input lines of code and project type. The experiment concludes that the program successfully implements the basic COCOMO cost estimation model.
The document describes an experiment to write a Java program that implements the Constructive Cost Model (COCOMO) software cost estimation algorithm. The program takes input of number of lines of code and project type (organic, semi-detached, embedded) and outputs the estimated effort, development time, and number of person-months required. The COCOMO model uses regression formulas with parameters derived from historical data to estimate effort based on lines of code and project attributes. The program implements the basic COCOMO equations to calculate effort, development time, and personnel from the input lines of code and project type. The experiment concludes that the program successfully implements the basic COCOMO cost estimation model.
The document describes an experiment to write a Java program that implements the Constructive Cost Model (COCOMO) software cost estimation algorithm. The program takes input of number of lines of code and project type (organic, semi-detached, embedded) and outputs the estimated effort, development time, and number of person-months required. The COCOMO model uses regression formulas with parameters derived from historical data to estimate effort based on lines of code and project attributes. The program implements the basic COCOMO equations to calculate effort, development time, and personnel from the input lines of code and project type. The experiment concludes that the program successfully implements the basic COCOMO cost estimation model.
DEPARTMENT OF COMPUTER ENGINEERING Experiment No. 10
Semester T.E. Semester VI Computer Engineering Subject Object Oriented Software Engineering Subject Professor In- charge Prof. Kavita Shirsat Laboratory L05C
Student Name Ravi P. Bhat Roll Number 11-205 Grade and Subject Teachers Signature
Experiment Number 10 Experiment Title Program for COCOMO based cost estimation Resources / Apparatus Required
Hardware: Computer System
Software: JDK 1.4 and Notepad++ Objectives (Skill Set / Knowledge Tested / Imparted)
To write a Java program to compute COCOMO based cost estimation based on no of lines of code. Theory of Operation
The Constructive Cost Model (COCOMO) is an algorithmic software cost estimation model developed by Barry W. Boehm. The model uses a basic regression formula with parameters that are derived from historical project data and current project characteristics. COCOMO consists of a hierarchy of three increasingly detailed and accurate forms. The first level, Basic COCOMO is good for quick, early, rough order of magnitude estimates of software costs, but its accuracy is limited due to its lack of factors to account for difference in project attributes (Cost Drivers). Intermediate COCOMO takes these Cost Drivers into account and Detailed COCOMO additionally accounts for the influence of individual project phases. Basic COCOMO: Basic COCOMO computes software development effort (and cost) as a function of program size. Program size is expressed in estimated thousands of source lines of code (SLOC) COCOMO applies to three classes of software projects: Organic projects - "small" teams with "good" experience working with "less than rigid" requirements
2
Semi-detached projects - "medium" teams with mixed experience working with a mix of rigid and less than rigid requirements Embedded projects - developed within a set of "tight" constraints. It is also combination of organic and semi-detached projects.(hardware, software, operational, ...)
The basic COCOMO equations take the form Effort Applied (E) = ab(KLOC)bb [ man-months] Development Time (D) = cb(Effort Applied)db [months] People required (P) = Effort Applied / Development Time [count] Where, KLOC is the estimated number of delivered lines (expressed in thousands) of code for project. The coefficients ab, bb, cb and db are given in the following table: Software project ab bb cb db Organic 2.4 1.05 2.5 0.38 Semi-detached 3.0 1.12 2.5 0.35 Embedded 3.6 1.20 2.5 0.32
Basic COCOMO is good for quick estimate of software costs. However it does not account for differences in hardware constraints, personnel quality and experience, use of modern tools and techniques, and so on.
Code: import java.util.Scanner; public class Cocomo { public static void main(String[] args) { String coco[][] = new String[4][5]; coco[0][0]="Software Project"; coco[0][1]="ab"; coco[0][2]="bb"; coco[0][3]="cb"; coco[0][4]="db";
Advantages of COCOMO estimating model are: 1. COCOMO is factual and easy to interpret. One can clearly understand how it works. 2. Accounts for various factors that affect cost of the project. 3. Works on historical data and hence is more predictable and accurate. Hence we have successfully implemented Basic COCOMO which describes in brief how to make cost estimate for a project.