In the following procedure, the parameter age represents a person's age. The procedure is intended to return the name of the age group associated with age. People who are under 18 are considered minors, people who are 65 and older are considered senior citizens, and all other people are considered adults. The procedure does not work as intended.

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter9: Working With Text Functions And Creating Custom Formats
Section: Chapter Questions
Problem 1.7CP
icon
Related questions
Question
In the following procedure, the parameter age represents a person's age. The procedure is intended to
return the name of the age group associated with age. People who are under 18 are considered minors,
people who are 65 and older are considered senior citizens, and all other people are considered adults. The
procedure does not work as intended.
Line 1:
PROCEDURE ageGroup(age)
Line 2:
}
result "adult"
Line 3:
Line 4:
IF(age 65)
Line 5:
{
Line 6:
result "senior citizen"
Line 7:
Line 8:
RETURN(result)
Line 9:
Line 10:
result "adult"
Line 11:
IF(age < 18)
Line 12:
Line 13:
result "minor"
Line 14:
Line 15:
RETURN(result)
Line 16: }
ill cause the procedure to work as intended?
Transcribed Image Text:In the following procedure, the parameter age represents a person's age. The procedure is intended to return the name of the age group associated with age. People who are under 18 are considered minors, people who are 65 and older are considered senior citizens, and all other people are considered adults. The procedure does not work as intended. Line 1: PROCEDURE ageGroup(age) Line 2: } result "adult" Line 3: Line 4: IF(age 65) Line 5: { Line 6: result "senior citizen" Line 7: Line 8: RETURN(result) Line 9: Line 10: result "adult" Line 11: IF(age < 18) Line 12: Line 13: result "minor" Line 14: Line 15: RETURN(result) Line 16: } ill cause the procedure to work as intended?
procedure to work as intended?
SELECT TWO answers.
Line 3
Line 8
| Line 10
1 Line 15
nd cond pages and f
Transcribed Image Text:procedure to work as intended? SELECT TWO answers. Line 3 Line 8 | Line 10 1 Line 15 nd cond pages and f
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Multiple table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage