The method displays the range of possible prices


When gasoline is$100per barrel,then the consumer's price atthe pumpisbetween $3.50 and$4.00pergallon.Createaclassnamed GasPrices.Its main()methodholdsaninteger variable named pricePerBarrel to which you will assign a value entered by a user at the keyboard. Create a method to which you pass pricePerBarrel. The method displays the range of possible prices per gallon. For example, if gas is $120 per barrel, then the price at the pump should be between $4.20 and $4.80. Save the application as GasPrices.java.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: The method displays the range of possible prices
Reference No:- TGS089467

Expected delivery within 24 Hours