The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 399 Weeks Ago, 1 Day Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Design, implement and test an object-oriented Java program for processing single-variable polynomials represented as lists. Consider polynomials with integer coefficients and positive integer exponents. Implement the operations of addition and subtraction of two polynomials. Read the polynomials from an input file (see Examples). A polynomial is represented in the input file by its name, the equal sign, and a set of pairs of integers, each pair consisting of the exponent and its corresponding coefficient. For example, P1 = 3 5 1 -4 0 8 represents the polynomial 5X^3 -4X + 8. After reading the polynomials, they will be displayed on the screen in human readable form (see Examples). A polynomial will always be written from the highest exponent to the lowest. A term having coefficient value zero will be omitted. The operations on polynomials will be entered by the user from the console (see Examples). After executing the required operation: (i) the program should store the new generated polynomial (to be further used in other operations), (ii) the result will be shown at the console in human readable form (see Examples) and (iii) the user will be allowed to specify another operation or to exit the program.
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll