Question: Write JavaScript program that will compute and display solution to the linear equation ax+b = 0. Your program should use promp function to ask user
Write JavaScript program that will compute and display solution to the linear equation ax+b = 0. Your program should use promp function to ask user to enter values of a nd b (one at a time) and then use write function to display the computed value of x. You should assume that user will not enter 0 as a value of a, so the equation has a unique solution. Embed your script in a simple html document. Submit both the JavaScript file and html file.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
