Please code in java and follow the instructions as it is please.. Dont use very advanced methods. refer the images attached The new manager of a craft beer pub. On your first day, the ATF demands an audit of your beer inventory in dollar amounts. The problem is that you’re on-tap kegs are only partially filled. You must determine the current retail worth of a tapped keg, based on the percentage of beer remaining, and the price of the beer per pour. Facts: A full-sized keg is 15.5 gallons. There are 128 ounces in 1 gallon. Beer is served in a pint glass There are 16 ounces in 1 pint. Input Your solution must take in two inputs. The first input represents the percentage of beer remaining in the keg represented as a decimal ratio, with valid ranges from 0.0 (empty) to 1.0 (full). The second input represents the price of the beer per serving, as dollars and cents. Output The output should display the following text: "There is $ of beer left in keg" where is the numerical value of how much is left.
Please code in java and follow the instructions as it is please.. Dont use very advanced methods.
refer the images attached
The new manager of a craft beer pub. On your first day, the ATF demands an audit of
your beer inventory in dollar amounts. The problem is that you’re on-tap kegs are only partially
filled. You must determine the current retail worth of a tapped keg, based on the percentage of
beer remaining, and the price of the beer per pour.
Facts:
A full-sized keg is 15.5 gallons.
There are 128 ounces in 1 gallon.
Beer is served in a pint glass
There are 16 ounces in 1 pint.
Input
Your solution must take in two inputs. The first input represents the percentage of beer
remaining in the keg represented as a decimal ratio, with valid ranges from 0.0 (empty) to 1.0
(full). The second input represents the price of the beer per serving, as dollars and cents.
Output
The output should display the following text: "There is $<dollars> of beer left in keg" where
<dollars> is the numerical value of how much is left.



Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 4 images









