answersLogoWhite

0

Still curious? Ask our experts.

Chat with our AI personalities

EzraEzra
Faith is not about having all the answers, but learning to ask the right questions.
Chat with Ezra
DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin
BeauBeau
You're doing better than you think!
Chat with Beau

Add your answer:

Earn +20 pts
Q: What is the most probable ion formed for Br?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Math & Arithmetic

What is the probable ion formed from Br?

Br-. Bromine will grab an electron to make itself more stable, which makes it a negative ion.


What is the formula compound formed between K plus 1 and Br -1?

0


How many meters equals 1 hectare?

10,000 square metres = 1 hectare<br><br><br>


How do I create a web page that lets a user enter as many values as they wish until the entry of a 0. Then find the sum and the average of all the numbers and show sum and average on screen. In code?

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;}...


Why was the number zero invented and by whom was it invented?

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