In an attempt to encourage consumers to use lower horsepower cars and conserve energy, a state adopted a set of annual license fees based upon the power rating of each car.Using the table below and given the auto's horsepower, write a JAVA program to print out the license fee.
Horsepower License Fee Up to 50 hp - $ 0 More than 50 but 100 hp or less - $30 More than 100 but 200 hp or less - $70 Mote than 200 but 300 hp or less - $150 More than 300 hp - $500