In Class Excersice-3 JAVA2 Design your interface as per given in sample run: You can use any creative way to design your
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
In Class Excersice-3 JAVA2 Design your interface as per given in sample run: You can use any creative way to design your
If the discriminant = 0, there is exactly one root. This is calculated by using the quadratic formula with the + symbol only (i.e. the positive square root of the discriminant). If the discriminant is greater than 0, there are two roots. this is calculated by using the quadratic formula twice, once with the positive square root of the discriminant and once with the negative square root of the discriminant. If the discriminant is less than 0, there is no solution and therefore no roots (you can display "Solution: No Solution". Following are sample run of program: Calculator seDo Quadratic Equation Solver A Value: 3 B Value: 2 X
C Value: 7 Solution: No Solution Calculator Quadratic Equation Solver A Value: 1 Solve B Value: -5 C Value: -4 Solve Solution: x=5.70, x=-0.70 Clear Clear X
Calculator Quadratic Equation Solver A Value: 9 B Value: 12 C Value: 4 Solve Solution: x= -0.67 X Submission and Marking Scheme: Clear Use Internal Standard document for commenting and name convention rule.