Answer:
Program that removes all spaces from the given input
Explanation:
// An efficient Java program to remove all spaces
// from a string
class GFG
{
// Function to remove all spaces
// from a given string
static int removeSpaces(char []str)
{
// To keep track of non-space character count
int count = 0;
// Traverse the given string.
// If current character
// is not space, then place
// it at index 'count++'
for (int i = 0; i<str.length; i++)
if (str[i] != ' ')
str[count++] = str[i]; // here count is
// incremented
return count;
}
// Driver code
public static void main(String[] args)
{
char str[] = "g eeks for ge eeks ".toCharArray();
int i = removeSpaces(str);
System.out.println(String.valueOf(str).subSequence(0, i));
}
}
Answer:
Explanation:
We are given:
m = 1.06Kg
T = 22kj
Therefore we need to find coefficient performance or the cycle
= 5
For the amount of heat absorbed:
= 5 × 22 = 110KJ
For the amount of heat rejected:
= 110 + 22 = 132KJ
[tex[ q_H = \frac{Q_L}{m} [/tex];
=
= 124.5KJ
Using refrigerant table at hfg = 124.5KJ/Kg we have 69.5°c
Convert 69.5°c to K we have 342.5K
To find the minimum temperature:
;
= 285.4K
Convert to °C we have 12.4°C
From the refrigerant R -134a table at = 12.4°c we have 442KPa
Answer:
Carnot heat pump
Explanation:
Carnot heat pump is an ideal heat pump in which all processes are reversible and that consume minimum amount of work to and produces maximum amount of heating effect compare to all real engine.And that is why COP of Carnot heat pump is more as compare to real heat pump.
All real heat pump are not perfectly reversible heat pump So this is also called irreversible heat pump .Due to irreversibility the COP of irreversible heat pump is always less than the COP of Carnot heat pump.
Answer:
Explanation:
Our values are,
State 1
We know moreover for the tables A-15 that
State 2
For tables we know at T=320K
We need to use the ideal gas equation to estimate the mass, so
Using now for the final mass:
We only need to apply a energy balance equation:
The negative value indidicates heat ransfer from the system