group work




JavaScript Source Code 3000: Calculators: Group Work







































Group Work







Ever had to work with another person to complete a task? This calculator will tell you how long it would take two people to complete the task if you know how long it would take each person to complete the task individually. Neat!






Person one can do the job in hours.
Person two can do the same job in hours.
Together, they can do the job in hours.







JavaScript Source Code 3000: Calculators: Group Work
Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!





    





<!-- TWO STEPS TO INSTALL GROUP WORK:

1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Original: mistermidget@hotmail.com -->

<! >
<! >

<!-- Begin
function groupWork() {
person1 = parseInt(document.workform.person1.value);
person2 = parseInt(document.workform.person2.value);
worktime = (person1*person2)/(person1+person2);
document.workform.time.value = worktime;
}
// End -->
</script>
</HEAD>

<!-- STEP TWO: Copy this code into the BODY of your HTML document -->

<BODY>

<center>
<form name=workform>
Person one can do the job in <input type=text name=person1 size=5> hours.<br>
Person two can do the same job in <input type=text name=person2 size=5> hours.<br>
Together, they can do the job in <input type=text name=time size=10> hours.<br><br>
<input type=button value="Solve!" name=solve onClick="groupWork()"><br>
</form>
</center>



<!-- Script Size: 1.15 KB -->










Wyszukiwarka

Podobne podstrony:
Superficial Fascia in the Hip Adductor Muscle Group tapeSP
group avr errno
121010141958?c english at work episode6
group corr
120702094621 english at work episode! final
group matrix sub
group util ?lay
120829102127?c english at work episode) en
user group howto pl 3
Group Specifications
group group math
group convolution example
group partial conv
Yr4 Group 3 Tests 07 12
group matrix example

więcej podobnych podstron