Answer:
// Program is written in Java Programming Language
// Comments are used for explanatory purpose
import java.util.*;
public class FlipCoin
{
public static void main(String[] args)
{
// Declare Scanner
Scanner input = new Scanner (System.in);
int flips;
// Prompt to enter number of toss or flips
System.out.print("Number of Flips: ");
flips = input.nextInt();
if (flips > 0)
{
HeadsOrTails();
}
}
}
public static String HeadsOrTails(Random rand)
{
// Simulate the coin tosses.
for (int count = 0; count < flips; count++)
{
rand = new Random();
if (rand.nextInt(2) == 0) {
System.out.println("Tails"); }
else {
System.out.println("Heads"); }
rand = 0;
}
}
Answer:
1.887 m
Explanation:
(15 *pi)/180
= 0.2618 rad
Polar moment
= Pi*d⁴/32
= (22/7*20⁴)/32
= 15707.96
Torque on shaft
= ((22/7)*20³*110)/16
= 172857.14
= 172.8nm
Shear modulus
G = 79.3
L = Gjθ/T
= 79.3x10⁹x(1.571*10^-8)x0.2618/172.8
= 1.887 m
The length of the bar is therefore 1.887 meters
Answer:
Gravitational force (pulled downward by the Earth)
Normal force (pushed upward by the ground)
Applied force (pushed by the person)
Friction force (pulled opposite the direction of motion by the roughness of the ground)