subject

Write an if/else statement that adds 1 to the variable minors if the variable age is less than 18, adds 1 to the variable adults if age is 18 through 64 and adds 1 to the variable seniors if age is 65 or older.

if (age < 18) then
minors += 1
elseif (age < 65) then
adults += 1
else
seniors += 1
end if

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:00
What is the name of the option in most presentation applications with which you can modify slide elements? 1. the option enables you to modify a slide element in most presentation applications.
Answers: 3
question
Computers and Technology, 23.06.2019 09:30
Why is an outfitting a workspace with video games in a technology development company considered a strategic use of money
Answers: 1
question
Computers and Technology, 23.06.2019 11:30
The most accurate readings that you can take on an analog vom are when the meter's pointer is at the a. center scale. b. extreme right. c. near right. d. extreme left.
Answers: 1
question
Computers and Technology, 23.06.2019 15:10
What role did women fill during world war ii?
Answers: 1
You know the right answer?
Write an if/else statement that adds 1 to the variable minors if the variable age is less than 18, a...
Questions
question
History, 01.09.2019 05:30
question
Chemistry, 01.09.2019 05:30
question
English, 01.09.2019 05:30
question
Mathematics, 01.09.2019 05:30
Questions on the website: 13722363