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:
vB = - 0.176 m/s (↓-)
Explanation:
Given
(AB) = 0.75 m
(AB)' = 0.2 m/s
vA = 0.6 m/s
θ = 35°
vB = ?
We use the formulas
Sin θ = Sin 35° = (OA)/(AB) ⇒ (OA) = Sin 35°*(AB)
⇒ (OA) = Sin 35°*(0.75 m) = 0.43 m
Cos θ = Cos 35° = (OB)/(AB) ⇒ (OB) = Cos 35°*(AB)
⇒ (OB) = Cos 35°*(0.75 m) = 0.614 m
We apply Pythagoras' theorem as follows
(AB)² = (OA)² + (OB)²
We derive the equation
2*(AB)*(AB)' = 2*(OA)*vA + 2*(OB)*vB
⇒ (AB)*(AB)' = (OA)*vA + (OB)*vB
⇒ vB = ((AB)*(AB)' - (OA)*vA) / (OB)
then we have
⇒ vB = ((0.75 m)*(0.2 m/s) - (0.43 m)*(0.6 m/s) / (0.614 m)
⇒ vB = - 0.176 m/s (↓-)
The pic can show the question.
Answer:
Machine Safeguards must meet these minimum general requirements: Prevent contact: The safeguard must prevent hands, arms, or any other part of a worker's body from making contact with dangerous moving parts. Be secure: Workers should not be able to easily remove or tamper with the safeguard.