OtherPapers.com - Other Term Papers and Free Essays
Search

Code

Essay by   •  April 18, 2012  •  Study Guide  •  380 Words (2 Pages)  •  1,155 Views

Essay Preview: Code

Report this essay
Page 1 of 2

public class Compute_Value {

public static void main(String[] args) {

double sum_total = 0.0;

String gen_ref1 = null;

double value1;

String phase1 = null;

String gen_ref2 = null;;

double value2;

String phase2 = null;;

//create the phase objects

Phase_Object phase_Objects[]= new Phase_Object[20];

phase_Objects[0] = new Phase_Object(2003,"1.0",200.0,"N/A");

phase_Objects[1] = new Phase_Object(2003,"1.1",400.0,"In");

phase_Objects[2] = new Phase_Object(2003,"1.2",300.0,"In");

phase_Objects[3] = new Phase_Object(2003,"1.2.1",100.0,"In");

phase_Objects[4] = new Phase_Object(2003,"1.2.2",200.0,"In");

phase_Objects[5] = new Phase_Object(2003,"1.3",100.0,"In");

phase_Objects[6] = new Phase_Object(2003,"1.4",200.0,"In");

phase_Objects[7] = new Phase_Object(2003,"1.5",300.0,"In");

phase_Objects[8] = new Phase_Object(2003,"1.5.1",300.0,"In");

phase_Objects[9] = new Phase_Object(2003,"1.7",600.0,"In");

phase_Objects[10] = new Phase_Object(2003,"1.7.1",100.0,"In");

phase_Objects[11] = new Phase_Object(2003,"1.7.2",200.0,"In");

phase_Objects[12] = new Phase_Object(2003,"1.7.3",300.0,"In");

phase_Objects[13] = new Phase_Object(2003,"1.8",400.0,"Out");

phase_Objects[14] = new Phase_Object(2003,"1.8.1",300.0,"Out");

phase_Objects[15] = new Phase_Object(2003,"1.8.2",100.0,"Out");

phase_Objects[16] = new Phase_Object(2003,"1.9",700.0,"Out");

phase_Objects[17] = new Phase_Object(2003,"1.10",200.0,"Out");

phase_Objects[18] = new Phase_Object(2003,"1.10.1",200.0,"Out");

phase_Objects[19] = new Phase_Object(2003,"1.11",500.0,"Out");

for(int i=1; i < phase_Objects.length; i++)

{

...

...

Download as:   txt (3.2 Kb)   pdf (60.3 Kb)   docx (9.6 Kb)  
Continue for 1 more page »
Only available on OtherPapers.com