The Artima Developer Community
Sponsored Link

Java Answers Forum
Need Help with Java!

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Max Delorean

Posts: 3
Nickname: flyadelore
Registered: Dec, 2008

Need Help with Java! Posted: Dec 26, 2008 3:56 PM
Reply to this message Reply
Advertisement
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

Topic: Java Help Previous Topic   Next Topic Topic: Need Java Help!

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use