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, 6 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
6.9Â Â Â Â Â Â Â Â Â (Conversions between feet and meters) Write a class that contains the following two methods:
Â
/** Convert from feet to meters */
public static double footToMeter(double foot)
Â
/** Convert from meters to feet */
public static double meterToFoot(double meter)
Â
The formula for the conversion is:
Â
meter = 0.305 * foot foot = 3.279 * meter
Â
Write a test program that invokes these methods to display the following tables:
Â
|
Feet |
Meters |
| |
Meters |
Feet |
|
1.0 |
0.305 |
| |
20.0 |
65.574 |
|
2.0 |
0.610 |
| |
25.0 |
81.967 |
|
... |
 |
 |
 |
 |
|
9.0 |
2.745 |
| |
60.0 |
196.721 |
|
10.0 |
3.050 |
| |
65.0 |
213.115 |
Â
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