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).
Answer:
D. Turn on the light source and the spectrophotometer.
Explanation:
A spectrophotometer is a machine used to measure the presence of any light-absorbing particle in a solution as well as its concentration. To prepare a spectrophotometer for use, the first step is to turn on the spectrophotometer and allow it to warm up for at least 15 minutes. After this is done, the next step will be to ensure that the samples and blank are ready. Next, an appropriate wavelength is set for the solute being determined. Finally, the absorbance is measured of both the blank and samples.
Answer:
A) m' = 351.49 kg/s
B) m'= 1036.91 kg/s
Explanation:
We are given;
Pressure Ratio;r_p = 12
Inlet temperature of compressor;T1 = 300 K
Inlet temperature of turbine;T3 = 1000 K
cp = 1.005 kJ/kg·K
k = 1.4
Net power output; W' = 70 MW = 70000 KW
A) Now, the formula for the mass flow rate using the total power output of the compressor and turbine is given as;
m' = W'/[cp(T3(1 - r_p^(-(k - 1)/k)) - T1(r_p^((k - 1)/k))
At, 100% efficiency, plugging in the relevant values, we have;
m' = 70000/(1.005(1000(1 - 12^(-(1.4 - 1)/1.4)) - 300(12^((1.4 - 1)/1.4)))
m' = 70000/199.1508
m' = 351.49 kg/s
B) At 85% efficiency, the formula will now be;
m' = W'/[cp(ηT3(1 - r_p^(-(k - 1)/k)) - (T1/η) (r_p^((k - 1)/k))
Where η is efficiency = 0.85
Thus;
m' = 70000/(1.005(0.85*1000(1 - 12^(-(1.4 - 1)/1.4)) - (300/0.85)(12^((1.4 - 1)/1.4)))
m' = 70000/(1.005*(432.09129 - 364.9189)
m'= 1036.91 kg/s
Answer:
4 - Double Parking
6- Perpendicular Parking
5- Hand over hand method
1 - Manual Transmission
3 - Push pull method
2 - Parking on a hill
Explanation:
Manual Transmission - requires a stick shift
Perpendicular Parking - type of parking in a parking lot.
Double Parking - Parking in the roadway
Hand-over-hand - Grab the far side of the wheel.
Push-pull Method - Slide your hand along the wheel.
Parking on a hill - Turn wheels toward curb.
Answer: False
Explanation: No, brass is not a ferrous alloy.
Ferrous alloys are those alloy which contain iron like cast iron, steel, strain-less steel, high carbon steel. Brass on the other hand does not contain any composition. of iron hence it can not be considered as a ferrous alloy. Brass comes under the category of non- ferrous made with a composition of copper and zinc, however their proportion is not strict and we can add other elements like aluminium or lead to alter its durability or corrosiveness.