Program Description: Write a program that solves the following linear equations in the form Ax + B = 0.

4x - 5 = 0

7x + 12 = 0

0x + 0 = 0

0x + 7 = 0

3.5x - 1.6 = 0

5x + 1.3 = 0

Read A and B from the keyboard. Be sure to account for all possible cases; that is:

• When A and B are both zero

• When A is non-zero

• When A is zero and B is non-zero

Required Statements: input, output, loop control, decision making, Be sure to run all of the test cases including at least one test case of your own that produces a different result from those given..

here is my code

[import java.io.*; import java.util.*; public class prog213g{ public static void main (String args[]){ Scanner scan = new Scanner(System.in); System.out.println("Enter A:"); double a = scan.nextDouble(); System.out.println("Enter B:"); double b = scan.nextDouble(); do{ double x= (-(b/a)); System.out.println(x); }while(a>=1); do{ double x= (-(b/a)); if(a==0 && b==0){ System.out.println("There are infinite solutions"); } }while(a==0 && b==0); do{ double x= (-(b/a)); if(a==0){ System.out.println("There are no solution"); } }while(a==0); } }]

the loop keeps running and running