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:
5,4,1, this is a explication
MW means megawatt, and one megawatt is a million Watts.
The 2.5 MW turbine is 4/2.5=1.6 $/w
Answer B
Explanation:
The purpose of this program is to recognize the Youth's vital role in nation- building, promote consciousness among youth and develop their physical, moral, spiritual, intellectual and social well-being. It shall inculcate in the youth patriotism, nationalism, and advance their involvement in public and civic affairs.