candeegraves4179 candeegraves4179
  • 07-03-2022
  • Computers and Technology
contestada

Write a multi-way if 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

Respuesta :

kf5znb kf5znb
  • 07-03-2022

Note, this is psudocode, because i dont know what language you are coding in.

define a variable: minors

define a variable: adults

define a variable: seniors

define a variable: age

if age <18{

add one to minors

}

else if 18<age<64{

add one to adults

}

else if age >= 65{

add one to seniors

}

Answer Link

Otras preguntas

I NEED HELP Kaylee put an empty cup underneath a leaking faucet. After 1 1/2 hours, Kaylee collected 1/4 cup of water. What is the rate in cups per hour, at
Because weightlessness in outer space causes astronauts to lose bone mass, at the end of each month, an astronaut has two percent less bone mass than at the beg
The hierarchy of life extends past individual organisms. Which of the following is the correct sequence, from least inclusive to most inclusive, following an in
A professor researching seaweed at a laboratory in the United States has been offered a position at a Chinese university. She needs to decide whether to move he
Solve the inequality for y. y + 6 < 17 Simplify your answer as much as possible.
The overall goal of technology is to do
What would be the atomic number of an atom that is composed of 15 protons and 18 neutron 3 15 33 18
What is the product of the estimate 1,374 x 6????
Choose the correct completion. Yo _______ en el agua. Question 5 options: a) entró b) entraste c) entramos d) entré
I need help on number 5