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. in visual basic

Respuesta :

Answer:

Explanation:

pseudo code is attached herewith:

var minors, age, adults, seniors

set minors to 0

set age to 0

set adults to 0

set seniors to 0

get age

if (age < 18)

set minors = minors + 1

else if (age >= 18 and age <= 64)

set adults = adults + 1

else if (age > 64)

set seniors = seniors + 1

else

print "Invalid Age Entry"

ACCESS MORE