[SOLVED] Programming-Techniques Assignment 1 - Polynomial Calculator

30.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon assignment-1-Polynomial-Calculator-s1pvt7.zip (1359.9 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (2 votes)

1. Requirements

Design and implement a polynomial calculator with a dedicated graphical interface through which the user can enter polynomials, select the operation to be performed (i.e. addition, subtraction, multiplication, division, derivative, integration) and display the result.

Note: Consider the polynomials of one variable and integer coefficients.

1.2 Design considerations

  • Use an object-oriented programming design o Use encapsulation

    o Define classes such as Polynomial and Monomial

  • Use the Model View Controller as an architectural pattern for designing the polynomial

    calculator.

    1.3 Implementation considerations

  • Use the Java programming language
  • Use Java Swing for implementing the graphical user interface
  • Use Regex for verifying the validity of the polynomials
  • Use lists instead of arrays
  • Use foreach instead of for(int i=0…)
  • Implement classes with maximum 300 lines of code (except for the UI classes)
  • Implement methods with maximum 30 lines of code
  • Use the Java naming conventions (https://google.github.io/styleguide/javaguide.html)

    1.4 Testing considerations

• Use JUNIT for testing the application.

2. Deliverables

  • A solution description document (minimum 2000 words, Times New Roman, 10pt,

    Single Spacing) organized according to the structure specified in the Lab Description

    document.

  • Source files – will be uploaded on the personal bitbucket account following the steps

    (check the Lab Resources, and Lab Description documents for more details):

o Create a repository on bitbucket named according to the following template

PT2020_Group_ LastName_FirstName_Assignment_1

o Push the source code and the documentation (push the code not an archive with the code)

• Share the repository with the user utcn_dsrl, or send an invitation to the address [email protected]

Implementation of the multiplication operation
Implementation of the division operation
Implementation of the derivative operation
Implementation of the integration operation
Design according to the Model View Controller architectural pattern
Regular expressions and pattern matching for extracting the polynomial coefficients

Junit for testing

4. Bibliography

• Junit:
o http://www.mkyong.com/tutorials/junit-tutorials/

0.5 points 1 point 0.5 points 0.5 points 1 points 0.5points

1

• Add libraries Eclipse:
o http://www.wikihow.com/Add-JARs-to-Project-Build-Paths-in-Eclipse-

%28Java%29

• Swing:
o http://zetcode.com/tutorials/javaswingtutorial/
o http://docs.oracle.com/javase/tutorial/uiswing/layout/visual.html

• Books:
o SCJP, Java 8 & JavaFX

o http://ptgmedia.pearsoncmg.com/images/9780321927767/samplepages/03219277 61.pdf

  • assignment-1-Polynomial-Calculator-s1pvt7.zip