1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Paha777 [63]
4 years ago
6

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 */ if (isTeenager) { System.out.println("Teen"); } else { System.out.println("Not teen"); } } }

Computers and Technology
2 answers:
Sonja [21]4 years ago
5 0

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.

Virty [35]4 years ago
5 0

Answer:

isTeenager = ( kidAge >= 13 ) && ( kidAge <= 19);

Explanation:

You might be interested in
How to defrost chicken quarter in the microwave?
mash [69]
Use the automatic defrosting feature on your microwave
6 0
4 years ago
My texts to people keep disapearring snd id k what to do. i text through pad let.
MakcuM [25]

Answer:

oh that sad am bored who eles is bored

Explanation:

7 0
3 years ago
Read 2 more answers
C++ Problem: In the bin packing problem, items of different weights (or sizes) must be packed into a finite number of bins each
ipn [44]

xekksksksksgBcjqixjdaj

4 0
4 years ago
UDP provides unreliable data transfer and therefore
vova2212 [387]

Answer: The answer is d.

Explanation:

UDP is a transport protocol (Layer 4 of the OSI model) that has no mechanism to provide a reliable transport between the source process and the destination one, as TCP does.

Anyway, due to this feature, is specially suitable for real-time applications , like video or audio, provided that the user can accept some loss in the stream.

Several real-time protocols, like RTP for instance (used for videoconferencing)  use UDP as transport protocol.

4 0
3 years ago
[name] was planning a dream vacation to [place].
Gwar [14]
Alexis was planning a dream vacation to Spain.

Alexis/She was especially looking forward to trying the local cuisine, including the famous Paella and Churros.

Alexis will have to practice the language
frequently to make it easier to speak with people.

Alexis/She has a long list of sights to see, including the El Prado museum and the beautiful park.


Hope this helps :)
5 0
3 years ago
Other questions:
  • You create hidden form fields with the ____ element.
    9·1 answer
  • What are advanced topics in programming
    15·1 answer
  • A "flat file" is also called
    8·1 answer
  • When backing up a database server to LTO tape drives, the following schedule is used. Backups take one hour to complete.
    12·1 answer
  • A single machine server that allows multiple users to access that machine simultaneously must have what type of os installed?
    5·1 answer
  • To which of these options does the style in Word apply? Select three options.
    7·1 answer
  • Select the correct answer.
    14·1 answer
  • Give four example of computer virus​
    13·1 answer
  • the administrator in an Exchange Server needs to send digitally signed and encrypted messages. What should the administrator use
    5·1 answer
  • Write the pseudocode for a program that will process attendance records of CA students. The students attend college five days a
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!