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

plsss help!!!!!!!!!! #4 #5​
The question is on equivalent expressions and properties of addition
What platform(what someone believes in) did Hitler use to rise to power?
[tex]x^{2} -6x+8[/tex] Select equivalent expressions in factored form for the expression
Bernadette is making a quilt. She needs 6 square yards of green fabric, 4 square yards of purple fabric and 10 square yards of white fabric. How many square fee
**HELP** What about the history and people of New Orleans made it a good place for jazz music to start? ​
I have made a thermometer which measures temperature by the compressing and expanding of gas in a piston. I have measured that at 1000 C the volume of the pist
If you are told the y-intercept is -4, what is the ordered pair for the y- intercept?
BRAINLIEST IF ITS CORRECT How did Adams respond to the French seizing American ships? He ordered American ships to stop trading with Britain. He declared war o
How does the creation of oil demonstrate conservation of mass?​