1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Black_prince [1.1K]
3 years ago
6

A summer camp offers a morning session and an afternoon session. The list morningList contains the names of all children attendi

ng the morning session, and the list afternoonList contains the names of all children attending the afternoon session.
Only children who attend both sessions eat lunch at the camp. The camp director wants to create lunchList, which will contain the names of children attending both sessions.
The following code segment is intended to create lunchList, which is initially empty.

It uses the procedure IsFound (list, name), which returns true if name is found in list and returns false otherwise.



FOR EACH child IN morningList

{



}

Which of the following could replace so that the code segment works as intended?
(A)
IF (IsFound (afternoonList, child))

{

APPEND (lunchList, child)

}

(B)
IF (IsFound (lunchList, child))

{

APPEND (afternoonList, child)

}
(C)
IF (IsFound (morningList, child))

{

APPEND (lunchList, child)

}

(D)
IF ((IsFound (morningList, child)) OR

(IsFound (afternoonList, child)))

{

APPEND (lunchList, child)

}
Computers and Technology
1 answer:
juin [17]3 years ago
3 0

Answer:

The answer is "Option A".

Explanation:

In this question, the choice "A" is correct because in this a conditional if block statement is used that that use "IsFound" method that takes two parameters "afternoonList and Child" in its parameter and use the append method that takes "lunchList and child" in parameter and add values, that's why other choices are wrong.

You might be interested in
You should check your battery ___________. Every week Never Every six months Every 30,00 miles
vova2212 [387]

The answer is Every six months

A battery acts as the brain of a car and is used to power almost everything. It can last up to five years. However, this lifespan will depend on how well the battery is maintained and the type of weather conditions you live in. Aim to check your car battery at least twice a year. Actually, it is best to check your battery regularly and not to wait for your mechanic to test your battery during routine servicing.

5 0
3 years ago
Read 2 more answers
The file includes 4993 tweets including the keyword 'election'. Each tweet is represented in a separate line. Write a program to
Likurg_2 [28]

Answer:

import re

with open("../../Downloads/Tweets.txt","r", encoding="utf-8") as tweets:

   myfile = tweets.readlines()

   for item in myfile:

       item = item.rstrip()

       mylist = re.findall("^RT (.*) ", item)

       if len(mylist) !=0:

           for line in mylist:

               if line.count("#") >=1:

                   ln = line.split("#")

                   dm = ln[1]

                   print(f"#{dm}")

Explanation:

The python source code filters the document file "Tweets" to return all tweets with a hashtag flag, discarding the rest.

7 0
3 years ago
Savings accounts _____.
klemol [59]
???????????????????????
7 0
3 years ago
PLEASE PLEASE HELP. IF THERE A MULTUPLE ANSWERS I WILL BRAINLIEST TO THE BEST ONE!!!!
sladkih [1.3K]

Answer: multiple answers but here is one

Explanation: The Advantages

One of the biggest advantages of ebooks is the fact that they require no trees to create them. This is obviously an eco-friendly option that both reduces cost and lowers environmental impact.

Information can be obtained without leaving your desk! Need to do some last-minute research on a particular topic? Simply find a great ebook store, search for your keywords or phrases, purchase the book and you’re set!

Unlike paper books and materials, digital books only require one device to carry around with you. This means you can carry a library of various book genres for every mood.

eBooks can lower the cost of enjoying your favorite titles. With no shipping and handling costs, eBooks typically have prices that are 50-60% lower than their print counterparts.

eBooks are more flexible than paper books. For those who have trouble reading the typical book-sized font, ebook readers can enlarge the font size to make reading more pleasurable and easier on the eyes.

eBooks can contain multi-media elements not available with traditional books. Audio and video can be embedded to make reading a fully immersive experience.

Ever wonder where that great passage in your favorite book went to? With ebooks you can mark passages, save pages and search text before, during or after you read.

With all these advantages it is difficult to imagine what the disadvantages are, but there are some that have many folks concerned. If you're already sold, we've listed the cheapest prices for the Amazon Kindle below.

The Disadvantages

Piracy is the number one concern for both publishers and authors. While traditional books can be copied with machines, the time and cost of doing so typically keeps this type of piracy at bay. With ebooks, however, 'sharing' books that have not been purchased with others is as easy as posting a file online or, in some cases, copying and pasting the text from one document to another.

Many people still prefer being able to hold a traditional book in their hands. For those of us who enjoy reading a book in bed before signing off for the night, a cold hard digital device just won’t be the same.

While one advantage of ebook devices is their ability to enlarge fonts for easier reading, the fact is you are still reading off an LCD screen. Some readers have matte e-ink screens, but others give off a glare that can not only make reading inconvenient if the lighting isn’t just right, but may actually cause eye strain and make it more difficult to focus while reading.

With the wide variety of formats and ereader devices on the market, choosing which device is the right one for all situations can be nearly impossible. Though compatible formats have been introduced that should allow most readers to view purchases, many of these still lack proper formatting. Without proper page layouts and spacing reading becomes more of a tedious chore than an enjoyable pastime. With traditional books one simply buys and reads!

When is the last time you had to plug your paper book into the wall outlet? How disappointing would it be to find yourself right in the middle of a steamy romance scene while traveling only to have the batteries in your reading device die, with no way to charge them?

Currently, ebooks have an unreliable life span. Paper books last for decades provided they are well cared for. And besides, what good is a bookshelf if you cannot enjoy the look and smell of all your time-worn books, lovingly thumbed, crimped and read cover to cover, over and over again?

7 0
2 years ago
Firewall implementation and design for an enterprise can be a daunting task. Choices made early in the design process can have b
PilotLPTM [1.2K]

Complete Question:

Firewall implementation and design for an enterprise can be a daunting task. Choices made early in the design process can have far-reaching security implications for years to come. Which of the following firewall architecture is designed to host servers that offer public services?

a) Bastion Host

b) Screened subnet

c) Screened host

d)  Screened

Answer:

b) Screened subnet

Explanation:

In Computer science, Firewall implementation and design for an enterprise can be a daunting task. Choices made early in the design process can have far-reaching security implications for years to come.

Screened subnet firewall architecture is designed to host servers that offer public services.

In network security and management, one of the network architecture used by network engineers for the prevention of unauthorized access of data on a computer is a screened subnet. A screened subnet can be defined as a network architecture that uses a single firewall with three screening routers as a firewall.

<em>A screened subnet is also known as a triple-homed firewall, this is because it has three (3) network interfaces;</em>

1. Interface 1: it is known as the external or access router, which is a public interface and connects to the global internet.

2. Interface 2: it is known as the demilitarized zone or perimeter network, which acts as a buffer and hosted public servers (bastions host) are attached herein.

3. Interface 3: it is known as the internal router, which is a subnet that connects to an intranet.

<em>The screened subnet when properly configured helps to prevent access to the internal network or intranet. </em>

8 0
3 years ago
Other questions:
  • Please help
    14·1 answer
  • Which of the following is caused by wind erosion?
    14·2 answers
  • A risk handling technique in which the organization chooses to simply do nothing, as the cost of the risk being actualized is lo
    15·1 answer
  • Can you make copies of classified documents provided you alert others?
    6·1 answer
  • Given an initialized String variable outfile, write a statement that declares a PrintWriter reference variable named output and
    12·1 answer
  • What makes someone an expert? What potential issues are there with this?
    10·2 answers
  • In PKI, the CA periodically distributes a(n) _________ to all users that identifies all revoked certificates.
    13·1 answer
  • Ask the user to input a word. Then, print the first letter, the last letter, and the length of the word on the same line with no
    6·1 answer
  • Consider the method get Hours, which is intended to calculate the number of hours that a vehicle takes to travel between two mil
    6·1 answer
  • Which scenario is most likely due to an everyday problem rather than a
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!