Question: Method 5: A method to display the results, with no return value. This method will: o Have 4 parameters: number of drinks consumed number of


Method 5: A method to display the results, with no return value. This method will: o Have 4 parameters: number of drinks consumed number of hours elapsed current male BAC current female BAC o Use the println and printf statements to: Display a few blank lines before displaying any output Display the output, exactly as shown in the sample below. Both BAC values should be displayed to 3 decimal places, and should line up. Display one final blank line.
java programming
Problem Summary A person would like to know how to determine his/her blood alcohol content (BAC). In Colorado, the legal driving limit is 0.08. Blood alcohol content (BAC) is usually expressed as a percentage of ethanol in the blood in units of mass of alcohol per volume of blood or mass of alcohol per mass of blood. So, for example, in North America a BAC of 0.1 (0.1% or one tenth of one percent) means that there are 0.10 g of alcohol for every dL (docilikx) oblood. A standard American drink contains 0.5 US fl oz (15 ml) of alcohol by volume, and is equivalent to: 12 oz of beer (5% alcohol) 5 oz of wine (12% alcohol) 1.5 oz shot of 80 proof liquor (40% alcohol) This means that there are 14 grams of alcohol in one standard American drink. Back in 1932, Swedish scientist Eric Widmark established the following formula for determining a person's initial BAC is: Alcohol consumed (in grams) weight (in grams) x Volume distribution (by gender) BAC = x 100 In the original formulas, the volume distributions of alcohol in the blood by gender were fixed values. One value (0.68) was used for males, and another value (0.55) was used for females However, in 1986, English chemist Robert Forrest came up with a better way to calculate the volume distribution (by gender), taking the person's weight and height into account
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
