Question
/* Add your own stuff here in the beginning!!!!!!!! Purpose: use methods to solve a quadratic formula. Nothing from the main will change, you will
/* Add your own stuff here in the beginning!!!!!!!! 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. */
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 c c = getC(); double discrim = getDiscrim(a, b, c), // call on method to get discrim root1 = getRoot1(a,b,c, discrim), // call on method to get the first root with a positive root2 = getRoot2(a,b,c,discrim); // call on method to get the first root with a positive display(a,b,c,root1,root2); // calls on method to display all the information } //------------------------------------------------methods---------------------------- I'm not sure what to do here. I assume that I only have to add the "methods" to complete the program but I get numerous errors when I compile.
Please help! Explanations for commands are needed so that I understand and learn.
Thank you for your time and help!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started