Help develop a script that organizes a dialogue with the user and allows you to make the transfer of a certain amount of money in UAH in euros and dollars at a certain rate.
2 answers
var euro_rate = 10.8; var dollar_rate = 7.95; val = prompt("Введите сумму в гривнах",""); alert("Сумма в евро: "+String(euro_rate*val)); alert("Сумма в долларах: "+String(dollar_rate*val));
|
My friends, if you learn a little about the literature on the proper design of user interaction (I highly recommend the books by Alan Cooper), you will come to the conclusion that such interaction can never be built on dialog boxes.
So I do not really understand what kind of help is required. To draw a html form?
If we are not talking about a real application, but about a training task, then this should be indicated in the question marks.
- This is a training. Most likely, I didn’t change the tags because it wasn’t explicitly stated in the question. Of course, no one does this in commercial applications) Well, if you do for yourself, and not according to TK, then all the markers are different in taste and color) - Bodrov Andrei
|