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:
Pie charts generally should have no more than eight segments.
Environmentally friendly
Since it focuses on are sustainable and efficient with and are made with the future in mind.
Answer:
False ( B )
Explanation:
considering that the wind turbine is a horizontal axis turbine
Power generated/extracted by the turbine can be calculated as
P = n * 1/2 *<em> p</em> *Av^3
where: n = turbine efficiency
<em>p = air density </em>
<em> </em>A = πd^2 / 4
v = speed
From the above equation it can seen that increasing the Blade radius by 10% will increase the Blade Area which will in turn increase the value of the power extracted by the wind turbine