| JavaScript Course |
|---|
This lesson is really just some practice at doing more complicated calculations. You can approach this in one of two ways as shown in previous lessons:
Write a program to do the following calculation:

(Your program will have to ask the user for a value for x , then calculate the value of y, and then output the answer. The calculation of y can be done in one long assignment instruction or in several shorter ones, where the result of one calculation may be used in another one.)
Check that the program above gets the correct answer by entering 0.5 as a value for x. This should give a value of -2 for y.
Make a note of the program in the above box.
End of Lesson : To go back to where you came from click on Back on the toolbar.