Answer:
ummm...idr.k..u got me....wat is it
Explanation:
No compiler can do that. Maybe with AI, but that's beyond the scope of a compiler.
Answer:
Hertz are commonly expressed in multiples: kilohertz (103 Hz, kHz), megahertz (106 Hz, MHz), gigahertz (109 Hz, GHz), terahertz (1012 Hz, THz), petahertz (1015 Hz, PHz), exahertz (1018 Hz, EHz), and zettahertz (1021 Hz, ZHz).
Answer:
import java.util.regex.*;
import java.util.Scanner;
public class Password
{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("Please enter the Password. \n");
String passwordString = input.next();
System.out.println(passwordCheck(passwordString));
}
public static boolean passwordCheck(String password){
if(password.length()>=8 && password.matches("[a-z0-9A-Z]+")){
return true;
}
else{
return false;
}
}
}
Explanation:
The Java class "Password" is used by the program to make an instance of the password object and check its validity with the passwordChecker method defined within the Password class. The passwordChecker method only matches alphanumeric passwords, that is, passwords with alphabets and numbers. If a non-alphanumeric character is encountered, the boolean value false is returned.
Answer:
your code looks correct. I think your issue is just indentation. with Python you want to be very careful with spacing.
Explanation:
c = 0
while (True):
user_input = input("Please enter the next word: " )
if user_input == "STOP":
break
c += 1
print ("# {}: You entered {}".format(c, user_input))
print("All done. {} words entered.". format(c))