calc.d 777 0 0 245 11330645311 5141 0%donald viewport Answer point point_1 label answer point_1 = {500,500} viewport Explain point point_2 label explain point_2 = {500,600} calc.e 777 0 0 2025 11330652527 5167 0%scout integer i=0; %eden Text1_setText(""); Text2_setText(""); Text3_setText(""); Text4_setText(""); Text5_setText(""); Text6_setText(""); Text7_setText("No Input, Will be Calculated"); Text8_setText("No Input, Will be Calculated"); pro =""; expl ="Employee Performance Evaluation, Art of Empricial Modelling"; z=""; _answer is label(ans,_point_1); _explain is label(expl,_point_2); proc one : button1_mouse_1 { auto x,u,idle,f,k; if(button1_mouse_1[2] == 4) { a=float(text6_TEXT_1); b=float(text5_TEXT_1); c=float(text1_TEXT_1); x=float(a/b); z=str(x); ##text7_setText(x); y=float(text2_TEXT_1); d=float(text3_TEXT_1); u=float(product(c,a)); text8_TEXT_1=(str(u)); idle=float(1-u); nodays=float(text4_TEXT_1); f = float(product(x,y)); k = float(d,idle,nodays); ans= float(f-k); expl="Profit is based on actual time booked to projects -paid for by clients- \n and idle time when the employee costs the company a daily rate"; } } profit.s 777 0 0 7556 11330650135 5615 0%scout window Text1; window Text2; window Text3; window Text4; window Text5; window Text6; window Text7; window Text8; window topwin; window Label1; window Label2; window Label3; window Label4; window Label5; window Label6; window Label7; window Label8; window button1; window explainwin; window answerwin; window Text1 = { type: TEXTBOX frame: ([{20, 90}, {13.800000, 1}]) string: "" bgcolor: "White" border: 1 sensitive: ON }; window Text2 = { type: TEXTBOX frame: ([{140, 90}, {13.800000, 1}]) string: "" bgcolor: "White" border: 1 sensitive: ON }; window Text3 = { type: TEXTBOX frame: ([{260, 90}, {13.800000, 1}]) string: "" bgcolor: "White" border: 1 sensitive: ON }; window Text4 = { type: TEXTBOX frame: ([{380, 90}, {13.800000, 1}]) string: "" bgcolor: "White" border: 1 sensitive: ON }; window Text5 = { type: TEXTBOX frame: ([{500, 90}, {13.800000, 1}]) string: "" bgcolor: "White" border: 1 sensitive: ON }; window Text6 = { type: TEXTBOX frame: ([{20, 190}, {13.800000, 1}]) string: "" bgcolor: "White" border: 1 sensitive: ON }; window Text7 = { type: TEXTBOX frame: ([{380, 165}, {30, 1}]) string: "" bgcolor: "White" border: 1 sensitive: ON }; window Text8 = { type: TEXTBOX frame: ([{380, 210}, {30, 1}]) string: "" bgcolor: "White" border: 1 sensitive: ON }; window Label1 = { type: TEXT frame: ([{20, 40}, {130, 60}]) string: "No. of Proj" bgcolor: "White" fgcolor: "Black" alignment: CENTRE sensitive: ON }; window Label2 = { type: TEXT frame: ([{140, 40}, {250, 60}]) string: "Proj. Profit" bgcolor: "White" fgcolor: "Black" alignment: CENTRE sensitive: ON }; window Label3 = { type: TEXT frame: ([{260, 40}, {370, 60}]) string: "Daily Rate" bgcolor: "White" fgcolor: "Black" alignment: CENTRE sensitive: ON }; window Label4 = { type: TEXT frame: ([{380, 40}, {480, 60}]) string: "Time Period" bgcolor: "White" fgcolor: "Black" alignment: CENTRE sensitive: ON }; window Label5 = { type: TEXT frame: ([{490, 40}, {600, 60}]) string: "Exp. Time" bgcolor: "White" fgcolor: "Black" alignment: CENTRE sensitive: ON }; window Label6 = { type: TEXT frame: ([{20, 140}, {130, 160}]) string: "Act. Time" bgcolor: "White" fgcolor: "Black" alignment: CENTRE sensitive: ON }; window Label7 = { type: TEXT frame: ([{260, 165}, {370, 185}]) string: "Productivity" bgcolor: "White" fgcolor: "Black" alignment: CENTRE sensitive: ON }; window Label8 = { type: TEXT frame: ([{260, 210}, {370, 230}]) string: "Utilisation" bgcolor: "White" fgcolor: "Black" alignment: CENTRE sensitive: ON }; window button1 = { type: TEXT frame: ([{210, 260}, {500, 290}]) string: "CLICK HETE TO CALCULATE PROFIT" bgcolor: "gray70" fgcolor: "Black" alignment: CENTRE sensitive: ON }; window explainwin = { type: DONALD box: [{0, 350}, {650, 450}] pict: "Explain" bgcolor: "Red" fgcolor: "white" border: 0 }; answerwin = { type: DONALD box: [{0, 300}, {650, 350}] pict: "Answer" bgcolor: "Blue" fgcolor : "black" border: 0 }; window topwin = { type: DONALD box: [{0, 0}, {650, 300}] pict: "Top" bgcolor: "DarkCyan" border: 0 }; display screen = ; Run_profit.e 777 0 0 132 11330256510 6361 0%eden include("profit.s"); %eden include("calc.e"); %eden include("calc.d"); %eden