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) {

minors = minors + 1;

} else if (age > 17 && age < 65) {

adults = adults + 1;

} else {

seniors = seniors + 1;

}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 22:00
Technician a says engine assemblies can be mounted longitudinally in a chassis. technician b says engine assemblies can be mounted transversely in a chassis. who is correct?
Answers: 2
question
Computers and Technology, 24.06.2019 00:00
The gene form of a trait is called a(n) 
Answers: 2
question
Computers and Technology, 24.06.2019 11:20
William travels a lot on business purpose. he needs to regularly communicate with his business partner. he also needs to send out weekly reports to his boss while he is traveling. which web-based application best suits william’s needs? (social media, webmail, wiki) is the best web-based application for william. he can access this application via the internet using a (digital cable, fax machine, web browser).
Answers: 1
question
Computers and Technology, 24.06.2019 14:30
Ahousehold consists of a married couple and their twin five-year old daughters. the couples children had no income and lived with their parents all of last year. how many exemptions can the couple claim on last years tax return or they file with the β€œ married filing jointly β€œ status? a. 4 b. 5 c. 3 d. 2
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
Mathematics, 05.01.2021 20:20
question
Mathematics, 05.01.2021 20:20
question
Mathematics, 05.01.2021 20:20
question
Social Studies, 05.01.2021 20:20
question
Business, 05.01.2021 20:20
question
Mathematics, 05.01.2021 20:20