Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

/* 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Foundations Technology Fundamentals For IT Success

Authors: Bob Bryla

1st Edition

0782143725, 9780782143720

Students also viewed these Databases questions

Question

Write the difference between sexual and asexual reproduction.

Answered: 1 week ago

Question

What your favourite topic in mathematics?

Answered: 1 week ago

Question

Briefly describe vegetative reproduction in plants.

Answered: 1 week ago

Question

KEY QUESTION Refer to Figure 3.6, page

Answered: 1 week ago