subject

Question 11 pts The county clerk’s office is writing a program to search their database for citizen records based on information about that citizen such as first name, last name, age, etc. Given below is a segment of pseudocode that should find the record of every citizen over the age of 50 in the county. The code makes use of the functions GetAgeOf and GetNameOf, which are used to retrieve the age and name of a citizen from a record which is inputted.

FOR EACH person IN citzlist
{
age = GetAgeOf(person)
name = GetNameOf(person)
IF(age 51)
{
DISPLAY(name)
}
}

FOR EACH person IN citzlist
{
age = GetAgeOf(person)
name = GetNameOf(person)
IF(age > 50)
{
DISPLAY(name)
}
}

FOR EACH person IN citzlist
{
age = GetAgeOf(person)
name = GetNameOf(person)
IF(age = 50)
{
DISPLAY(name)
}
}

FOR EACH person IN citzlist
{
age = GetAgeOf(person)
name = GetNameOf(person)
IF(age < 51)
{
DISPLAY(name)
}
}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 19:00
Jill wants to become a network professional. which certification would be useful for her? a. mcse b. pmp c. comptia a+ d. ccie
Answers: 2
question
Computers and Technology, 23.06.2019 15:00
Plz ( which is an example of a good url?
Answers: 1
question
Computers and Technology, 23.06.2019 20:30
Column a of irma’s spreadsheet contains titles for each row, but her document is too big and will be printed three pages across. she wants to be sure that every page will be understood. what can irma do to with this problem?
Answers: 3
question
Computers and Technology, 24.06.2019 02:20
The first time a user launches the powerpoint program, which view is shown allowing the user to access recent presentations or create new presentations based on templates?
Answers: 1
You know the right answer?
Question 11 pts The county clerk’s office is writing a program to search their database for citizen...
Questions
question
Mathematics, 31.12.2019 21:31