You are on page 1of 2

Experiment No 2

Roll No : Date of Performance : Aim : To study and calculate the function point and its analysis. Theory :

A function point is a unit of measurement to express the amount of business functionality an information system provides to a user. The cost of a single unit is calculated for different aspects of the project.The functional user requirements of the software are identified and each one is categorized into one of five types: outputs, inquiries, inputs, internal files, and external interfaces. Once the function is identified and categorized into a type, it is then assessed for complexity and assigned a number of function points.
FP = count total *[0.65 + 0.01*(Fi)] Program:

importjava.util.*; public class fpCost { public static void main(String[] args) { Scanner scr = new Scanner(System.in); String count[]={"No. of input file : ","No. of output file : ","No. of output inquiry : ","No. of file : ","No. of external interface : "}; String fi[]={"Back up and recovery : ","Data Communication : ","Distributed processing : ","Performance critical : ","Existing operating environment : ","Online Data entry","Input Transaction over multiple screens : ","Master file updated : ","Information domain value complex : ","Internal processing complex : ","Code Design for reuse : ","Installation in design : ","Multiple Installation : ","Application design for change : "}; floatsum_fi=0; for(inti=0;i<14;i++) { System.out.println("Enter "+fi[i]); sum_fi=sum_fi+Float.parseFloat(scr.next()) ; } floatcount_val[]=new float[14];

for(inti=0;i<5;i++) { System.out.println("Enter "+count[i]); count_val[i]=Float.parseFloat(scr.next()); } floatsum_count=0; sum_count=count_val[0]*2+count_val[1]*4+count_val[2]*3+ count_val[3]*7+count_val[4]*5 ; doublefp =sum_count*(0.65+0.01*sum_fi) ; System.out.println(Function point cost is +fp); } }
Output:

Conclusion:

Using this analysis we determine that the cost of the project is 23.76 in terms of function point of the entire project. Cost is calculated in terms of number of files used and rating of functions.

You might also like