Answer:
Explanation:
The following code is written in Java and uses a for loop with a series of IF ELSE statements to check the next and previous characters in a string. Checking to make sure that there are no asterix. If so it adds that character to the String variable output. Which is returned to the user at the end of the method. Two test cases have been created and the output can be seen in the attached image below.
class Brainly {
public static void main(String[] args) {
System.out.println(starOut("sm*eilly"));
System.out.println(starOut("ab**cd"));
}
public static String starOut(String str) {
String output = "";
for (int i = 0; i < str.length(); i++) {
if ((i != 0) && (i != str.length()-1)) {
if ((str.charAt(i-1) != '*') && (str.charAt(i+1) != '*') && (str.charAt(i) != '*')) {
output += str.charAt(i);
}
} else {
if ((i == 0) && (str.charAt(i) != '*') && (str.charAt(i+1) != '*')) {
output += str.charAt(i);
} else if ((i == str.length()-1) && (str.charAt(i) != '*') && (str.charAt(i-1) != '*')) {
output += str.charAt(i);
}
}
}
return output;
}
}
This question is related to the emission of electrons when light shines on an metal. (Photoelectric effect)
With the classical theory, it was thought that increasing or decreasing the intensity of light would increase or decrease the kinetic energy of the electron.,
Another expected result was that time gap between when light strikes the metal and when electrons are ejected, would depend on the intensity of such light.
However, the experimental results were not consistent with the particle theory of light. So your answer is A.
Later on this effect was correctly explained by Einstein based on Planck's findings.
In the context of machine learning, an artificial neural network (ANN) exists most likely utilized for oil and gas exploration (Option c).
<h3>
What is machine learning?</h3>
- Machine learning (ML) guides to a kind of artificial intelligence based on computer algorithms capable of producing predictions without being programmed to do so.
- Machine learning algorithms are used in various industries, including, among others, medical diagnostics, bioinformatics, image processing, modification of hygiene in production plans, etc.
- Moreover, an artificial neural network (ANN) directs to a machine learning technique that receives inputs and then delivers explicit outputs regarding predefined activation functions.
- This kind of computation network (artificial neural network) exists similar to neuronal biological networks carried out by neurons.
Hence, In the context of machine learning, an artificial neural network (ANN) exists most likely utilized for oil and gas exploration (Option c).
To learn more about Machine learning refer to:
brainly.com/question/25523571
#SPJ4
The complete question is,
In the context of machine learning, an artificial neural network (ANN) is most likely used for
a. Supplying explanations for solutions.
b. problems that require the use of if-then-else rules.
c. oil and gas exploration.
d. portfolio development and analysis.
Is this self advertising because its not a question so i have no answer for you and if i missed something on the website that was a question let me know