Answer:
The solution code is written in Java.
- public class Main {
-
- public static void main(String[] args) {
-
- Scanner inNum = new Scanner(System.in);
- System.out.print("Enter number of toss: ");
- int num = inNum.nextInt();
-
- for(int i=0; i < num; i++){
- System.out.println(toss());
- }
- }
-
- public static String toss(){
- String option[] = {"heads", "tails"};
- Random rand = new Random();
- return option[rand.nextInt(2)];
- }
- }
Explanation:
Firstly, we create a function <em>toss()</em> with no parameter but will return a string (Line 14). Within the function body, create an option array with two elements, "heads" and "tails" (Line 15). Next create a Random object (Line 16) and use <em>nextInt()</em> method to get random value either 0 or 1. Please note we need to pass the value of 2 into <em>nextInx() </em>method to ensure the random value generated is either 0 or 1. We use this generate random value as an index of <em>option </em>array and return either "heads" or "tails" as output (Line 17).
In the main program, we create Scanner object and use it to prompt user to input an number for how many times to toss the coin (Line 6 - 7). Next, we use the input num to control how many times a for loop should run (Line 9). In each round of the loop, call the function <em>toss() </em>and print the output to terminal (Line 10).
A wastewater plant discharges a treated effluent (w) with a flow rate of 1.1 m^3/s, 50 mg/L BOD5 and 2 mg/L DO into a river (s) with a flow rate of 8.7 m^3/s, 6 mg/L BOD5 and 8.3 mg/L DO. Both streams are at 20°C. After mixing, the river is 3 meters deep and flowing at a velocity of 0.50 m/s. DOsat for this river is 9.0 mg/L. The deoxygenation constant is kd= 0.20 d^-1 and The reaction rate constant k at 20 °C is 0.27 d^-1.
The answer therefore would be the number 0.27 divided by two and then square while getting the square you would make it a binomial.
I wont give the answer but the steps
Your Welcome
The answer is A. Immediately inform her colleague
A) chilled water from evaporator
Answer:0.1898 Pa/m
Explanation:
Given data
Diameter of Pipe
Velocity of water in pipe
We know viscosity of water is
Pressure drop is given by hagen poiseuille equation

We have asked pressure Drop per unit length i.e.

Substituting Values

=0.1898 Pa/m