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
Create a class that will bundle together several static methods for tax computations. This class should not have a constructor. Its attributes areÂ
·        basicRate—the basic tax rate as a static double variable that starts at 4 percentÂ
·        luxuryRate—the luxury tax rate as a static double variable that starts at 10 percent
Its methods areÂ
·        computeCostBasic(price)—a static method that returns the given price plus the basic tax, rounded to the nearest penny.Â
·        computeCostLuxury(price)—a static method that returns the given price plus the luxury tax, rounded to the nearest penny.Â
·        changeBasicRateTo(newRate)—a static method that changes the basic tax rate.Â
·        changeLuxuryRateTo(newRate)—a static method that changes the luxury tax rate.Â
·        roundToNearestPenny(price)—a private static method that returns the given price rounded to the nearest penny. For example, if the price is 12.567, the method will return 12.57.
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------.Pl-----------eas-----------e p-----------ing----------- me----------- on-----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be-----------