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: | 408 Weeks Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
5.1Â Â Â Â Write a Java program that divides the number 74.3 by 12.6 and reports the result of the division. Store the dividend and divisor in variables named dividend and divisor before performing the division. What will be the type of these variables? What will be the type of the result? What is the quotient?
5.2Â Â Â Â Write a Java program to compute the area of a circle whose radius is 5. For the value of PI, use 3.14. Now rewrite your program so that it uses the very precise value of PI available as a static constant in the Math class that comes with Java. Here is how you use the Math class constant:
double pi = Math. I;
How much does your result change?
Â
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