JAVA Project - Polynomial Arithmetic with HashMap

Assignment Help JAVA Programming
Reference no: EM132267050

Assignment - JAVA Project Polynomial Arithmetic with HashMap

Instructions: JAVA programs with HashMap two polynomials and will be able to do arithmetic with them. Want addition, subtraction, multiplication, division and remainder to be implemented. Please use Template on attachment

Projects must be submitted as a ZIPPED FOLDER with the folder name as Y{8 Digit #} *for example the folder name is Y12345678 Within the folder will only be source code, NO .class files. The files in the folder will be:

1) Y12345678.java

2) Utility.java

3) Polynomial.java

4) PolynomialInterface.java

Any projects that do not compile or work will receive a 0. Excuses such as "It compiles on my computer" or "It worked last time" will not be accepted. Your program must work on all machines not just yours. If you are using an IDE such as eclipse, before submitting, remove all package statements from all files. Project Specs: You have been hired by a math teacher to help write a program that will read in any two polynomials and will be able to do arithmetic with them. They want addition, subtraction, multiplication, division and remainder to be implemented.

The input will be two polynomials in string form:

"X^5+2X^2+3X^3+4X^4"

"2X^2+4X"

The output will should be:

Sum: X^5 + 4.0 X^4 + 3.0 X^3 + 4.0 X^2 + 4.0 X

Difference: X^5 + 4.0 X^4 + 3.0 X^3 -4.0 X

Product: 2.0 X^7 + 12.0 X^6 + 22.0 X^5 + 16.0 X^4 + 8.0 X^3

Quotient: 0.5 X^3 + X^2 -0.5 X + 2.0

Remainder: -8.0 X

You will be using a HashMap to accomplish this task. Implementation is up to you. You must parse each string using the Java String API. It is important that you learn how to parse strings and break them down into the information that you need. You will probably spend 50% of your time parsing the strings into its individual terms. To check if your output is correct, you can do the math yourself, or go on wolfram alpha. You are supplied with an outline. DO NOT CHANGE THE INTERFACE, UTILITY CLASS, OR THE MAIN METHOD. You may change the two input strings for testing, but change it back to original state before you submit it.

Attachment:- Assignment Files.rar

Reference no: EM132267050

Questions Cloud

Briefly describe cyberbullying : Where is cyberbullying occurring? Do the victims of cyberbullying experience it more at home or school? Why?
Career development or organizational development : This could be someone working in the areas of training & development, career development, or organizational development.
Describe this qualitative observation tool : Discuss whether you will be using this tool to observe social/emotional development, physical development, cognitive development, or language development.
Describe the concept of academic integrity : The concept of academic integrity includes the avoidance of plagiarism. To avoid plagiarism, it helps to first recognize it.
JAVA Project - Polynomial Arithmetic with HashMap : Assignment - JAVA Project Polynomial Arithmetic with HashMap. You must parse each string using the Java String API
Research ethical leadership and decision-making practices : Write a research paper on ethical leadership and decision-making practices and discuss how they impact education reform in higher education.
Is the lesson aligned to a standard : What changes or revisions might you make to this lesson plan to ensure its alignment to the standard and learning objective?
Brief discussion of the history of HRD : Include a brief discussion of the history of HRD and the relationship between human resource management and HRD/Training.
Explain how you would use turnitin in the future : As you have progressed through this course, you have learned the importance of developing your scholarly voice, you have learned about critical thinking.

Reviews

len2267050

3/26/2019 11:09:20 PM

JAVA programs with HashMap two polynomials and will be able to do arithmetic with them. They want addition, subtraction, multiplication, division and remainder to be implemented. Please use Template on attachment. You must to use template to finish the program. Projects must be submitted as a ZIPPED FOLDER with the folder name.

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd