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:
the pressure at a closed valve attached to the tank 10 ft above its bottom is 37.88 psi
Explanation:
Given that;
depth 1 = 71 ft
depth 2 = 10 ft
pressure p = 17 psi = 2448 lb/ft²
depth h = 71 ft - 10 ft = 61 ft
we know that;
p = P_air + yh
where y is the specific weight of ethyl alcohol ( 49.3 lb/ft³ )
so we substitute;
p = 2448 + ( 49.3 × 61 )
= 2448 + 3007.3
= 5455.3 lb/ft³
= 37.88 psi
Therefore, the pressure at a closed valve attached to the tank 10 ft above its bottom is 37.88 psi
Answer:
Blank wall
Explanation:
A wall that cannot be moved because it is carrying the weight of the roof is considered a blank wall.
Answer:
Theory of Mind : A robotic head has a face that recognizes and simulates emotions.
Self aware : A robot tries to protect itself from harm
Purely Reactive : A door automatically opens when a person steps in front of it.
Limited Memory : A personal assistant software tracks a persons travel routes and suggests shorter routes.
Explanation:
Artificial intelligence is simply a technology which enables automation. It enables system perform task without being explicitly controlled. Purely reactive systems do not store Data in memory, it simply observes what going on at the moment which is what it was programmed to do and takes a step. One the machine detects someone approaching up to a certain distance, it opens.
Limited Memory systems store information about the past and this enhances its Decison making, prediction engines, self driving cars use this kind of artificial intelligence.
Theory of Mind : Here, systems are trained to detect, understand and replicate what is understood. Once the robot identifies an emotion, it replicates it.
Self - Aware : An advanced level of AI, where systems will not only be able to replicate what they see, but also make conscious decisions as to which action to take in different circumstances.
Answer:
A bona fide occupational qualification defense
Explanation:
Since the store is for women clothing, the retail may prefer to employ only female to assist the customers. Under a bona fide occupational qualification defense, an employer is allowed to discriminate if a characteristic is a necessity for the performance of the job and for the business. Therefore, the store has a bona fide occupational qualification defense.