this is an emergency
using notepad i have to do this:
The color of the beacon light atop Boston's John Hancock Building forecasts the weather according to the following rhyme.
Steady blue, clear view.
Flashing blue, clouds due.
Steady red, rain ahead.
Flashing red, snow instead.
Write a JavaScript program that requests a color (blue or red) and a mode (steady or flashing) as input and display the weather forecast.
please help
Comments
Once and for all... If you are in school and get homework... Listen to your teacher in class... and don't just try to post your exercise on the boards..... :-)
Don't expect us to do your homework... view your textbook and the note you should have made during classes.... :-)
It's a month ago so I persume you already failed for this so here'the answer:
[code]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
website - page
function Go() {
document.getElementById('output').innerHTML += document.getElementById('mode').value + ' ' + document.getElementById('color').value + ',
';
}
color
red
blue
mode
steady
flashing
Execute
[/code]
: this is an emergency
: using notepad i have to do this:
:
:
: The color of the beacon light atop Boston's John Hancock Building forecasts the weather according to the following rhyme.
:
: Steady blue, clear view.
: Flashing blue, clouds due.
: Steady red, rain ahead.
: Flashing red, snow instead.
:
: Write a JavaScript program that requests a color (blue or red) and a mode (steady or flashing) as input and display the weather forecast.
:
: please help
:
;-)
-mac-
mailto:[email protected]
the Netherlands...
: Once and for all... If you are in school and get homework... Listen to your teacher in class... and don't just try to post your exercise on the boards..... :-)
:
: Don't expect us to do your homework... view your textbook and the note you should have made during classes.... :-)
:
At least they give thinking problems. The inst. I am subjected to give an algorithm, and expect that inserting data will teach us programming.
That's not programming, it's a configuration!!!