Answer:
import java.util.Scanner;
public class TeenagerDetector {
public static void main (String [] args) {
Scanner scnr = new Scanner(System.in);
boolean isTeenager;
int kidAge;
kidAge = scnr.nextInt();
/* Your solution goes here */
isTeenager = (kidAge >= 13) && (kidAge <= 19);
if (isTeenager) {
System.out.println("Teen");
} else { System.out.println("Not teen"); } } }
Explanation:
A condition which check for the teenager age and return a boolean is assigned to isTeenager.
isTeenager = (kidAge >=13) && (kidAge <= 19);
So, if the kidAge is greater than/equal to 13 and less than/19, the boolean isTeenager will be true and the program will output "Teen" else "false" will be output.
The range of age for a teenager is 13 - 19.
Your answer is a to your question
Answer:
The solution code is written in Python:
- def nested_list_string(list2D):
- output = ""
- for i in range(0, len(list2D)):
- for j in range(0, len(list2D[i])):
- output += str(list2D[i][j]) + " "
-
- return output
Explanation:
Let's create a function and name it as nested_list_string() with one input parameter, list2D (Line 1).
Since our expected final output is a string of number and therefore we define a variable, <em>output</em>, to hold the string (Line 2).
Next use two for loops to traverse every number in the list and convert each of the number to string using <em>str()</em> method. Join each of individual string number to the output (Line 3-5).
At the end, we return the output (Line 7)
Right 4 down 5 right 8 !!!!!!!!!
Answer:
Security Tab is the correct answer.
Explanation:
The Security Tab will enable the users to authorize anyone to use that file or directory.Many clients deleted the security tab because After that nobody can alter the security privileges on the device.
- With the help of the Security tab, we will minimize the ActiveX attacks on Internet Explorer. This option is available in the Internet Options of the dialog box.
- Other options are incorrect because they are not related to a given scenario.