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’m not sure if the first one right but i need help
Who are the "radical” artists of today? What purpose does this type of art serve in our time? In this case, “art” includes visual art, poetry, fiction, music, f
A principal of $3600 is invested at 3.5% interest, compounded annually. How much will the investment be worth after 12 years? Use the calculator provided and ro
Simplify: [tex]\frac{10m}{5m}[/tex]
What is the size, in degrees, of the missing angle? 70° 160°
Science and technology frequently provide solutions to problems we face on a daily basis sicknesses hunger, communication and enactment of these solutions is mo
look at picture please
Q. Do you agree that if there is no first cause, the universe makes no sense? Is an infinite regress nonsensical?
Brenda is a local florist and is determined to have the best roses at this year’s competition. She is trying to figure out a way to to grow the most fragrant ro
Is this statement true or false? The size and color of an object effects how it moves. TRUE FALSE