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, 5 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Add the following to the Fraction class:
1. A reduce method that changes a fraction to lowest terms. A.reduce();
2. Add, subtract, multiply and divide methods that operate on fractions. F.add (A, B); or F = A.add (B);
3. Improve the read method so that it reads a fraction in as a string without prompt messages and does error-checking to ensure valid input.
4. Improve the toString method so that it displays special cases in the most presentable way (3/1 as 3, 0/5 as 0).
5. Have the class handle negative fractions properly during calculations and display.
6. A menu-driven main program that allows the class to be thoroughly tested.! only need help on number 3
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