Computers and Technology

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)
}
}

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 06:30, iamquintix
Exchanging which type of data uses the least bandwidth? music photographs video voice bandwidth- the amount of data that can be moved between two points in a set time period
Answers: 1
image
Computers and Technology, 22.06.2019 11:00, babbybronx
Lisa’s company, abc ltd., lost its biggest client and is now facing a financial crunch. most of her colleagues have resigned, but lisa decides to stay with the company and assist the management in overcoming the financial situation. which quality is lisa demonstrating? a. self-management b. cooperativeness c. responsibility d. loyalty
Answers: 2
image
Computers and Technology, 23.06.2019 00:10, witerose701
Write a function so that the main0 code below can be replaced by the simpler code that calls function mphandminutes tomiles0. original main0 int main) l double milesperhour-70.0; double minutestraveled = 100.0; double hourstraveled; double milestraveled; hourstraveled = minutestraveled / 60.0; milestraveled = hourstraveled * milesperhour; cout < "miles" 2 using namespace std; 4 /* your solution goes here/ 6 int maino 1 test passed 7 double milesperhour 70.0 all tests passed 8 double minutestraveled 100.0; 10 cout < < "miles: " < < mphandminutestomiles(milesper-hour, minutestraveled) < < endl; 12 return 0; 13
Answers: 1
image
Computers and Technology, 23.06.2019 12:00, trippie4life
3. when you right-click a linked spreadsheet object, what commands do you choose to activate the excel features? a. linked worksheet object > edit b. edit data > edit data c. linked spreadsheet > edit d. object > edit data
Answers: 2
Do you know the correct answer?
Question 11 pts The county clerk’s office is writing a program to search their database for citizen...

Questions in other subjects:

Konu
English, 19.10.2020 17:01
Konu
Chemistry, 19.10.2020 17:01