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: | 398 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
| Using Net Beans IDE (version 8) write a Java program to create a class Huge Integer which uses a 40-element array of digits to store integers as large as 40 digits each. •Provide methods parse, to String, add and subtract. Method parse should receive a String, extract each digit using method char At and place the integer equivalent of each digit into the integer array. •For comparing Huge Integer objects, provide the following methods: is Equal To, is Not Equal To, is Greater Than, is Less Than, is Greater Than Or Equal To and is Less Than Or Equal To. Each of these is a predicate method that returns true if the relationship holds between the two Huge Integer objects and returns false if the relationship does not hold. •Provide a predicate method is Zero. •If you feel ambitious, also provide methods multiply, divide and remainder. [Note: Primitive Boolean values can be output as the word “true” or the word “false” with format specified %b.] In addition to the source codes of your program, in a text file, please provide a user documentation that outlines: •The logical structure and flow of the program. •Description of the input files to test the application. (a file with valid data and a file with invalid data) •A detailed instruction of how the program can be compiled and executed. •Screen shots of the execution sessions. |
||
| Specific requirements: When you complete your program, please archive the source code files, user documentation (read me file) and the two input files using WinZip |
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