Question: Purpose: use methods to solve a quadratic formula. Nothing from the main will change, you will just need to write the methods to make the

 Purpose: use methods to solve a quadratic formula. Nothing from the

Purpose: use methods to solve a quadratic formula. Nothing from the main will change, you will just need to write the methods to make the program work. input/output must be in dialog/message box utilizing JOptionPane. Keep things as simple as possible and use programming comments throughout.L */ import javax.swing.JOptionPane; public class inclassQuadFormula { public static void main(String[] args) { int a = geta(), b = getB(), // Call on methods to get a, b, and a c = getc(); double discrim = getDiscrim(a, b, c), root1 = getRoot1(a,b,c, discrim), root2 = getRoot2(a,b,c,discrim); // call on method to get discrim // call on method to get the first root with a positive // call on method to get the first root with a positive // calls on method to display all the information display(a,b,c, root1, root2); } // - --methods

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!