Answer:
I will code in JAVA.
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
boolean tallEnough;
boolean oldEnough;
Scanner input = new Scanner(System.in);
tallEnough = input.nextBoolean();<em> //wait the input for tallEnough</em>
oldEnough = input.nextBoolean(); <em>//wait the input for OldEnough</em>
if(tallEnough && oldEnough){
System.out.print(true);
} else {
System.out.print(false);
}
}
}
Explanation:
First, to accept user inputs you have to import the class Scanner. Then declare both variables before allowing the user to set input values for both boolean variables.
In the if-else statement checks if both variables are true, then prints true. Another case prints always false.
Answer:
User-level Security
Explanation:
User-level security allows the user to access resources on a network using a username and password. User-level security offers higher and greater security than share-level security, which does not require a password to access files.
User-level security allows the database user access and permission to resources.
You didn't include the original function, but the new function will contain something like:
function kelvin_to_celsius(k)
{
return k - 273.15;
}
Depending of course on your programming language.
The outcome for negative Kelvin is undefined, you could test for that.