subject

Write an expression that will cause the following code to print "i am a teenager" if the value of userage is less than 20.
import java. util. scanner;
public class agechecker {
public static void main (string [] args) {
int userage;
scanner scnr = new scanner(system. in);
userage = scnr. nextint(); // program will be tested with values: 18, 19, 20, 21.
if (/ *your solution goes here*/ ) {
system. out. println("i am an adult");
}
else {
system. out. println("i am a teenager");
}
}
}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:50
You have written, as part of a school assignment, a research paper on the solar system. you want to share this paper on your school website. on which type of server will you upload it?
Answers: 1
question
Computers and Technology, 22.06.2019 16:30
You have inserted new slides based on a word outline. how do you format these new slides to match the powerpoint presentation formatting? a. select all slides in the presentation and click format on the home tab. b. select the new slides and click reset on the home tab. c. select all slides in the presentation and click reset on the home tab. d. select the new slides and click format on the home tab.
Answers: 2
question
Computers and Technology, 24.06.2019 07:00
Jean has kept the content of her website limited to what is important; she has also ensured that the text follows a particular style and color all throughout her website. which website features has jean kept in mind? jean has limited the content of her website to what is important; this ensures (clarity, simplicity, harmony and unity) of the content. she has also formatted the text in a particular style and color throughout her website, ensuring (balance, simplicity, consistency)
Answers: 2
question
Computers and Technology, 24.06.2019 07:20
Ingrid started speaking about her slide presentation. when she clicked to th"third slide, which had just a picture of an elephant, she forgot what she wassupposed to talk about. what could ingrid do to avoid this situation in thefuture? oa. print handouts for her audience.ob. add presenter's notes to each slide.oc. add a video to each slide.od. save her slide presentation to a flash drive
Answers: 2
You know the right answer?
Write an expression that will cause the following code to print "i am a teenager" if the value of us...
Questions
question
History, 20.09.2020 15:01
question
Mathematics, 20.09.2020 15:01
question
Mathematics, 20.09.2020 15:01
question
Social Studies, 20.09.2020 15:01
Questions on the website: 13722360