Answer and Explanation:
The crack formation growth that takes place in an environment corrosive.
Stress corrosion cracks can be defined as the spontaneous failures of the metal alloy as a result of the combined action of corrosion and high tensile stress.
Some of the characteristic features of stress corrosion cracks are:
- These occur at high temperatures.
- Occurrence of failures in metals mechanically.
- Occurrence of sudden and unexpected failures under tensile stress.
- The rate of work hardening of the metal alloy is high.
- Time
- An environment that is specific for stress corrosion cracking.
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:
See explaination
Explanation:
Please kindly check attachment for the step by step solution of the given problem.
Answer:
A safety margin is the space left between your vehicle and the next to provide room, time and visibility at every instant
Explanation:
A safety margin is defined as an allowance given between your vehicle and the next vehicle in front to provide enough room, visibility and time to move in a safe manner to prevent the occurrence of an accident at anytime the frontal vehicle suddenly stops or slows down
Safety margins help minimize risks in the following way
1) A common knowledge of safety margins, improves predictability among road users, thereby minimizing the risk traffic accidents caused due to late communication
2) The use of safety margins helps minimize the risk due to a change in driving conditions such as when the road becomes more slippery from being covered with fluid that is being wetted
3) Safety margin can help prevent the occurrence of an accident between vehicles due to failure of a car system, such as a punctured tire or failed breaking system
4) Safety margin helps to protect road users from the introduction of obstacles on the main roads such as ongoing road construction, broken down vehicles, road blockage by vehicles involved in an accident etc
5) Safety margin help protect road users from being involved in an accident due to the loss of driving focus of the driver of the frontal vehicle