subject

Identify the logic error in the code below. The code is supposed to display a single message “child”, “adult” or “senior” for any value of age: if (age < 18) {
System. out. println("child");
} else if (age >= 18) {
System. out. println("adult");
} else if (age > 65) {
System. out. println("senior");
}
Question 1 options:

a)

no message for age = 65

b)

too many messages for age = 18

c)

no message for age < 65

d)

message “senior” will never be displayed

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:30
How can you know if the person or organization providing the information has the credentials and knowledge to speak on this topic? one clue is the type of web site it is--the domain name ".org" tells you that this site is run by a nonprofit organization.
Answers: 2
question
Computers and Technology, 22.06.2019 08:00
Aplan to budget time for studying and activities is referred to as a study routine. study habits. study skills. a study schedule.
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
1. which of the following is not an example of an objective question? a. multiple choice. b. essay. c. true/false. d. matching 2. why is it important to recognize the key word in the essay question? a. it will provide the answer to the essay. b. it will show you a friend's answer. c. it will provide you time to look for the answer. d. it will guide you on which kind of answer is required.
Answers: 1
question
Computers and Technology, 24.06.2019 17:50
You work in the accounting department and have been using a network drive to post excel workbook files to your file server as you complete them. when you attempt to save a workbook file to the drive, you see the error message: “you do not have access to the folder ‘j: \’. see your administrator for access to this folder.” what should you do first
Answers: 2
You know the right answer?
Identify the logic error in the code below. The code is supposed to display a single message “child”...
Questions
question
Mathematics, 01.09.2020 01:01
question
Mathematics, 01.09.2020 01:01
question
Chemistry, 01.09.2020 01:01
question
Mathematics, 01.09.2020 01:01
question
Mathematics, 01.09.2020 01:01
question
Social Studies, 01.09.2020 01:01
Questions on the website: 13722360