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

  Depicts a model for recording flight and passenger

This assignment requires you to design, implement and test a program using Java features from the first half of the subject content. You are required to implement in Java all the classes presented in the conceptual model according the specificatio..

  Java tv''s newest owner! java tv is the greatest tv channel

Java TV's newest owner! Java TV is the greatest TV channel ever, and it prides itself in its 24 hour interesting ' programming'. To help you run this channel you will need to write a  dynamic  program that uses  Data Lists  to store all its TV show i..

  Create an accessor method and mutator method

Create an accessor method and mutator method for each of the data fields - Create a method called printBalance

  Java assignment

Java Assignment

  Write a program to implement the boyer-moore algorithm

Write a program to implement the Boyer-Moore algorithm - Design a greedy algorithm to solve the activity selection problem. Suppose there are a set of activities: a1, a2, ...an that wish to use a lecture hall. Each activity ai has a start time sia..

  How must a method return if it returns a value

CIS 36A What is the difference between a class and an object? How must a method return if it returns a value? What name does a constructor have?

  Write a test application name employeetest

Create two Employee objects and display each objects yearly salary. Then give each employee a 10% raise and display each employee's yearly salary again.

  Various ways of exception handling

Various ways of exception handling

  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.

  Design - uml diagrams and overall design

Develop a problem-based strategy for creating and applying programmed solutions using an object-oriented paradigm - Use an object-oriented development environment in the development, testing and debugging of an object-oriented application.

  Implement a recursive function static boolean

We have a set of coins of arbitrary positive values and want to see whether a given nonnegative total can be made using a some subset of the coins.

  Design and implement a p-two-p file-sharing application

You need to design and implement a lightweight CORBA-based P2P file-sharing application. This application consists of a server program and a client program.

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