Its called tilt shift effect
Answer:
C. Use the help feature
Explanation:
The help feature in the MS word is the quickest access to getting real time assistance when working on a project.
Here's my code for that, consider it under the WTFPL (http://www.wtfpl.net/). Here is a pastebin of the code, as to avoid text formatting. (Link: https://pastebin.com/S3BDGxqm Raw: https://pastebin.com/raw/S3BDGxqm)
package javaapplication6;
import java.util.Scanner;
public class JavaApplication6 {
public static void main(String[] args) {
Scanner myScanner = new Scanner(System.in);
boolean a;
int s;
System.out.println("Enter an int");
s = myScanner.nextInt();
a = hasEight(s);
System.out.println(a);
}
private static boolean hasEight(int s)
{
String str = String.valueOf(s);
return str.contains("8");
}
}
Answer:
There is logic problem in condition of elseif statement that is (time<20).
Explanation:
elseif(time<20) will be true for time<10 that means program will never greet good morning as to make logic correct either change condition from <em>elseif(time<20)</em> to <em>elseif(time<20&& time>=10)</em>. Or change the order of condition like check first for <em>elseif(time<10) </em>
solution 1
if (time < 6) { greeting = "It is too early!"; }
else if (time < 20 && time>=10) { greeting = "Good Day!"; }
else if (time < 10) { greeting = "Good Morning!"; }
else { greeting = "Good Evening!"; }
console.log(greeting);
solution 2
if (time < 6) { greeting = "It is too early!"; }
else if (time < 10) { greeting = "Good Morning!"; }
else if (time < 20 ) { greeting = "Good Day!"; }
else { greeting = "Good Evening!"; }
console.log(greeting);