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));
}
}
E. Parts they don’t resemble
The height at which the mass will be lifted is; 3 meters
<h3>How to utilize efficiency of a machine?</h3>
Formula for efficiency is;
η = useful output energy/input energy
We are given
η = 60% = 0.6
Input energy = 4 KJ = 4000 J
Thus;
0.6 = useful output energy/4000
useful output energy = 0.6 * 4000
useful output energy = 2400 J
Work done in lifting mass(useful output energy) = force * distance moved
Useful output energy = 800 * h
where h is height to lift mass
Thus;
800h = 2400
h = 2400/800
h = 3 meters
Read more about Machine Efficiency at; brainly.com/question/3617034
#SPJ1
Answer:
The power of the brick wall it may be how the soiled ness of the wall too keep in the cold
Explanation:
Answer:
Fracture.
Explanation:
Fracture describes how a mineral looks when it breaks apart in an irregular way.