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

How can I become a famous model at 14? Please seriously answer I’m so serious about this. Also give me some motivation quotes
The students are in the library working on their papers. Jan asks Tim, " Can you help me ? Even with the footnote, I can't understand this sentenced marked by t
idk a question for points you can answer if you would like.​
a train traveling at 72 km/h crosses a platform in 30 seconds what is the length of the platform in meters
What’s the correct order of ribs from superior to inferior
PLZ HELP 30 POINTS! The submarine dove 150 feet from periscope height to an elevation of 200 feet below sea level. A number line has points blank, A, negative 1
Patra drops her toy from the balcony. The toy hits the ground in: 2.5 seconds. What is the velocity of the toy the instant before it hits the ground?
how much times to make something?
3.) The volume of a cylinder, V(h), is given by the area of the base times the height, h. The base of the cylinder shown below is 5 inches squared. Part A: Writ
Make the longest rap and I'll give brainless make your own​