The assignment page my professor gave: http://img337.imageshack.us/img337/3679/a
ID: 3620565 • Letter: T
Question
The assignment page my professor gave: http://img337.imageshack.us/img337/3679/assignmentpage.jpg http://img337.imageshack.us/img337/3679/assignmentpage.jpgThe following page was written behind the assignment page http://img411.imageshack.us/img411/6057/page1example.jpg
He also handed out this page http://img543.imageshack.us/img543/7/page2example.jpg http://img707.imageshack.us/img707/368/page2examplecontinues.jpg
http://img411.imageshack.us/img411/6057/page1example.jpg
He also handed out this page http://img543.imageshack.us/img543/7/page2example.jpg http://img707.imageshack.us/img707/368/page2examplecontinues.jpg
http://img543.imageshack.us/img543/7/page2example.jpg Step 3: Enter your full question details here this is a big assignment.. so please do it carefuly..
Explanation / Answer
Dear.. import java.io.*; import java.util.*; public class Project { private static Scanner console = new Scanner(System.in); public static void main(String[] args) { Polynomial polyAdd = new Polynomial(); Polynomial polySub = new Polynomial(); menu(); } public static void menu() { int choice; String polynomial1; String polynomial2; //Menu print System.out.println("1. Create a Polynomial from the keyboard."); System.out.println("2. Add two Polynomials and Display Result."); System.out.println("3. Subtract two Polynomials and Display Result."); System.out.println(""); choice = console.nextInt(); System.out.println(""); switch (choice) { case 1: System.out.println("Enter the first polynomial."); polynomial1 = console.next(); System.out.println("Enter the second polynomial."); polynomial2 = console.next(); System.out.println(""); break; case 2: //Add two Polynomials and Display result System.out.println(""); break; case 3: //Subtract two Polynomials and Display result System.out.println(""); break; default: choice = console.nextInt(); console.nextLine(); } menu(); } } public class Polynomial extends UnorderedArrayList { public Polynomial() { super(); length = 100; } public Polynomial(int size) { super(size); length = size; } public double evaluate(Double x) { double value = 0.0; Double coeff; for (int i = 0; iRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.