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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 23:00, SuperWoman9172
What is one of the main problems that can occur when implementing a large number of new systems within an organization?
Answers: 1
image
Computers and Technology, 22.06.2019 17:00, juandguardado7045
Your company has 1,500 desktop computers running windows 7. you want to upgrade them to windows 10. which type of microsoft license would be best suited in this situation?
Answers: 3
image
Computers and Technology, 23.06.2019 13:30, jhitotw
What is the primary difference between the header section of a document and the body? a. the body is displayed on the webpage and the header is not. b. the header is displayed on the webpage and the body is not. c. the tag for the body is self-closing, but the tags for the headers must be closed. d. the tag for the header is self closing, but the tag for the body must be closed.
Answers: 3
image
Computers and Technology, 23.06.2019 21:30, shadoris26
To move a file or folder in microsoft windows, you can click and hold down the left mouse button while moving your mouse pointer to the location you want the file or folder to be, which is also known as.
Answers: 3
You know the right answer?
Question 11 pts The county clerk’s office is writing a program to search their database for citizen...

Questions in other subjects:

Konu
Mathematics, 20.06.2020 22:57