A part of the body is hidden in each of the following sentences. The first sentence contains "head." Can you find the rest?
1. The ad is for Monday's sale.
2. The tour group can go to either country.
3. My car makes funny noises sometimes.
4. Sarah and Tony are getting married.
5. That casino seems shady.
6. Can't you see that Hank needs help?
7. The sea is so calm out here.
8. Would you like to go surfing?
ss= ["The ad is for Monday's sale" ,
"The tour group can go to either country" ,
"My car makes funny noises sometimes" ,
"Sarah and Tony are getting married" ,
"That casino seems shady",
"Can't you see that Hank needs help?",
"The sea is so calm out here" ,
"Would you like to go surfing? "] ;
ss=erase(ss," ");
ss=lower(erase(ss,"'"))
clc
for i=1:length(ss)
sent=char(ss(i))
fid=fopen('c:\words\words.txt','r');
while ~feof(fid)
w=fgetl(fid);
f=strfind(sent,w);
if ~isempty(f)
disp(w)
end
end
fclose('all');
disp(' ')
end
shows all words found. I've highlighted the body parts below. The last sentence does not seem to have a body part.
ss =
8×1 string array
"theadisformondayssale"
"thetourgroupcangotoeithercountry"
"mycarmakesfunnynoisessometimes"
"sarahandtonyaregettingmarried"
"thatcasinoseemsshady"
"cantyouseethathankneedshelp?"
"theseaissocalmouthere"
"wouldyouliketogosurfing?"
sent =
'theadisformondayssale'
a
ad
al
ale
ay
ays
day
days
dis
for
form
he
head
is
mo
mon
n
on
or
sal
sale
the
sent =
'thetourgroupcangotoeithercountry'
a
an
can
count
country
either
er
et
go
got
group
he
her
het
it
ither
n
oe
our
roup
the
to
toe
tour
try
un
up
sent =
'mycarmakesfunnynoisessometimes'
a
ar
arm
car
es
ess
et
fun
funny
is
ma
make
makes
me
met
my
n
no
noise
noises
om
so
som
some
sometime
sometimes
ti
time
times
un
sent =
'sarahandtonyaregettingmarried'
a
ah
aha
an
and
ar
are
ed
et
get
getting
ha
hand
in
ma
mar
married
n
on
rah
re
reg
ti
tin
ting
to
ton
tony
ya
yar
yare
sent =
'thatcasinoseemsshady'
a
ad
as
at
casino
casinos
em
ems
ha
had
hat
in
n
no
nos
nose
os
ose
see
seem
seems
sh
sha
shad
shady
si
sin
that
sent =
'cantyouseethathankneedshelp?'
a
an
ant
at
can
cant
canty
ed
eds
el
et
eth
ha
hank
hat
hath
he
help
knee
kneed
n
ne
nee
need
needs
see
sh
she
than
thank
that
us
use
yo
you
youse
sent =
'theseaissocalmouthere'
a
ai
ais
al
calm
er
ere
es
he
her
here
hes
is
mo
mouth
mouther
oca
out
re
sea
so
the
there
these
ut
sent =
'wouldyouliketogosurfing?'
et
fin
go
gos
in
keto
li
like
n
os
surf
surfing
to
tog
wo
would
yo
you
>>
|
Posted by Charlie
on 2024-10-24 10:13:44 |