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:
Diesel cycle:
All diesel engine works on diesel cycle.It have four processes .These four processes are as follows
1-2.Reversible adiabatic compression
2-3.Heat addition at constant pressure
3-4.Reversible adiabatic expansion
4-1.Heat addition at constant volume
When air inters in the piston cylinder after that it compresses and gets heated due to compression after that heat addition take place at constant pressure after that power is produces when piston moves to bottom dead center.
From the diagram of P-v And T-s we can understand so easily.
Answer:
The electric current from the batteries installed in a radio supplies direct current (DC) electricity to the radio components directly as an alternative source to the Alternating Current (AC) converted to DC by the power unit located at the radio end of the cable plugged into the wall outlet.
Explanation:
Part of the power unit in a radio includes an AC to DC converter, which is an electrical circuit that is able to convert the alternating current power input from the wall outlet into a direct current output to the radio with which the radio can work
The alternative source of electric current from the batteries installed in a radio bypasses the AC to DC converter and supplies power directly to the radio so it can also work.
Answer:
a) isentropic efficiency = 84.905%
b) rate of entropy generation = .341 kj/(kg.k)
Please kindly see explaination and attachment.
Explanation:
a) isentropic efficiency = 84.905%
b) rate of entropy generation = .341 kj/(kg.k)
The Isentropic efficiency of a turbine is a comparison of the actual power output with the Isentropic case.
Entropy can be defined as the thermodynamic quantity representing the unavailability of a system's thermal energy for conversion into mechanical work, often interpreted as the degree of disorder or randomness in the system.
Please refer to attachment for step by step solution of the question.