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;
}
}
Explanation:
Science is the body of knowledge that explores the physical and natural world. Engineering is the application of knowledge in order to design, build and maintain a product or a process that solves a problem and fulfills a need (i.e. a technology).
Answer:
Part a: The yield moment is 400 k.in.
Part b: The strain is 
Part c: The plastic moment is 600 ksi.
Explanation:
Part a:
As per bending equation

Here
- M is the moment which is to be calculated
- I is the moment of inertia given as

Here
- b is the breath given as 0.75"
- d is the depth which is given as 8"



The yield moment is 400 k.in.
Part b:
The strain is given as

The stress at the station 2" down from the top is estimated by ratio of triangles as

Now the steel has the elastic modulus of E=29000 ksi

So the strain is 
Part c:
For a rectangular shape the shape factor is given as 1.5.
Now the plastic moment is given as

The plastic moment is 600 ksi.