You could do this using Javascript.1) create a textfield2) create a submit button3) define two Javascript variables: a running tally, and a click-counter4) give the button an onclick event that calls a function that works like this:read the value from the text fieldconvert it to a numeric valueif that value is 0 {if the counter != 0 {display the tally and the average (which equals tally over counter)}else{either display an error message, or 0 as both the tally and average - to your taste.}reset both the tally and the counter to 0}else{add the value to the tallyincrement the counter by 1}And here's a working example of how to do it:span.buttonClass{background-color: #C8C8C8;padding: 4px;border-width: 2px;border-style: outset;font-weight: bold;}The Summinator!var tally = 0, counter = 0;function addValue(){var textfield = document.getElementById("addVal");var avgfield = document.getElementById("avgfield");var sumfield = document.getElementById("sumfield");var num = parseFloat(textfield.value);var sum, avg;textfield.value = '';if(isNaN(num)){ // make sure they entered a numberalert("Please enter a numeric value.");}else{if(num != 0){tally += num;counter ++;sumfield.textContent = "";avgfield.textContent = "";}else{if(counter == 0){sum = avg = 0;}else{sum = tally;avg = tally / counter;}sumfield.innerHTML = "The sum is " + sum;avgfield.innerHTML = "The average is " + avg;tally = counter = 0;}}}Add ValueYou can even make it a little nicer by having it output the sum and average each time a number is entered, rather than waiting for the zero input (which would still reset things). That actually simplifies the code too, and would look like this:...if(isNaN(num)){ // make sure they entered a numberalert("Please enter a numeric value.");}else{if(num != 0){tally += num;counter ++;sum = tally;avg = tally / counter;}else{sum = avg = tally = counter = 0;}sumfield.innerHTML = "The sum is " + sum;avgfield.innerHTML = "The average is " + avg;}...
10,000 square metres = 1 hectare<br><br><br>
the number zero is first used by Indians only not by any one else<br /><br /><br /><br /> The number zero was actually invented by the <i><b>Ancient Egyptians
Br means Mist... in spanish i guess Br comes from Bruma, a kind of Mist. Fg is Fog, Fu is Smoke (from "fumarola" in spanish as well)
yes, across the Br-C-Br/H-C-H planes.
Br-Cl has a more polar bond because chlorine is more electronegative than iodine, resulting in a greater difference in electronegativity between the two elements. This difference in electronegativity leads to a more polar bond in Br-Cl compared to Br-I.
Yes, it's possible. Cis: Br/H=Br/H or Trans: Br/H=H/Br
Five sixths is greater than one half. The difference between the two fractions is one third. so no 5/6 is notFive sixths is greater than one half. The difference between the two fractions is one third.<br> <br> No - three sixths would be a half<br><br>Imagine a large cake cut into 6 equal pieces. To have half of the cake you would need to take 3 of the pieces, not 5.<br> a half it is more.
The bond energy of H-F is greater than H-Br because fluorine is more electronegative than bromine, resulting in a stronger bond between hydrogen and fluorine due to increased attraction. This stronger bond requires more energy to break, leading to a higher bond energy in H-F compared to H-Br.
The P-Cl bond is more polar than the P-Br bond. This is because chlorine (Cl) is more electronegative than bromine (Br), so it attracts the shared electrons in the bond more strongly, leading to a greater difference in electronegativity and thus a more polar bond in P-Cl compared to P-Br.
I can, but would I? Yes.<br><br>For example, in comparisons, you would say, "He is taller than I." "He is taller than me" is grammatically incorrect.<br><br>It would help, however, if you gave an example. You wouldn't say, "He gave it to I." <br><br><br>
Yes, the acidic strength of HOCl is greater than HOBr. This is because chlorine is more electronegative than bromine, leading to a stronger bond between hydrogen and oxygen in HOCl, making it easier to donate a proton.
Yes, the Br ion would be larger than the Se ion because Br has more electrons and occupies a higher energy level, leading to greater atomic size. Additionally, Se from the same period will have a smaller atomic size compared to Br.
The S-Cl bond is more polar than the Br-Cl bond. This is because sulfur (S) is more electronegative than bromine (Br), leading to a greater electronegativity difference between sulfur and chlorine (Cl) compared to bromine and chlorine. This larger electronegativity difference results in a more polar bond.
The bond between Br-I is more polar than the bond between Br-Cl. This is because iodine is less electronegative than chlorine, resulting in a larger difference in electronegativity between the two atoms in the bond. Therefore, the Br-I bond will exhibit stronger polarity.
No, Cl is not a stronger base than Br. In the periodic table, as you move down a group, basicity usually increases. Therefore, Br, being lower in the group than Cl, is a stronger base.
The Br ion is larger than the K ion. This is because the Br ion has more electron shells than the K ion, leading to a larger atomic radius.