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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!