Engineering Homework Help

JAVAprogram will bundle together several static methods for tax computations. This class should not have a

JAVA

Get Your Custom Essay Written From Scratch
We have worked on a similar problem. If you need help click order now button and submit your assignment instructions.
Just from $13/Page
Order Now

program 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

=> java: Rates java j—ya Rates Enter the price : 1234.55? The basic cast (4% basic rate} : 1283.95 The luxury cast [18% luxury rate} : 1358.82Enter new basic rate : 6 Enter new luxury rate :…