A fle has been attached to this iab called englishtxt. It contains a solection of random english words. There is one word on each line. Open the file by using the command In opent'erglish.tar Ask the user for a single letter. Loop through the fle and print any word that starts with that letter. Your letter match should be case insensitive. If the user enters A, you should print words that start with a Romember to close your fle once you have completed the task he yeu wileeient ithepnrg nrg fes Alle l te wited t kdedgiah tet t coratarienet ndgih was Tree edh e e he le ly ung the cend Ak eu te er toce theugh he k andpt ywode viwt t that kte vourmh od ec vnstve Itr ertar A ya shai pt wrds ar stat wtha ferty eee y omtae va d y mo decnn an of he e larter hors allpy sanfue rocas Arng works tpssed ipana rore aratery

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Answer fast else downvote
A file has been attached to this lab called english.txt. It contains a selection of random english words. There
is one word on each line.
Open the file by using the command
I= opent'englishtxl)
Ask the user for a single letter. Loop through the file and print any word that starts with that letter. Your
letter match should be case insensitive, If the user enters A. vou should print words that start with a.
Remember to close your file once you have completed the task.
hthis lb, you will eperiment uithepenirg an resng fles
A de le b ed flobededgishtet itcoraedte
Open the le tu usng the comand
penanali.ta,
Aak theuse for a singie ltter. Loco through he k andpntny word ther Starts that ktte Yourrmanch shouid be cse
irnstive if the er entars A you shoudptwode tha start wth A
Femember ta clcae your fle ance yau hae completad the toa
Vaar n cund te de any cmor checiinc in is pan of the lab
Rer FrA tetera
utora
agues
aucoras
AEuring
Anastononos
Antheonosde
abcanden
Transcribed Image Text:A file has been attached to this lab called english.txt. It contains a selection of random english words. There is one word on each line. Open the file by using the command I= opent'englishtxl) Ask the user for a single letter. Loop through the file and print any word that starts with that letter. Your letter match should be case insensitive, If the user enters A. vou should print words that start with a. Remember to close your file once you have completed the task. hthis lb, you will eperiment uithepenirg an resng fles A de le b ed flobededgishtet itcoraedte Open the le tu usng the comand penanali.ta, Aak theuse for a singie ltter. Loco through he k andpntny word ther Starts that ktte Yourrmanch shouid be cse irnstive if the er entars A you shoudptwode tha start wth A Femember ta clcae your fle ance yau hae completad the toa Vaar n cund te de any cmor checiinc in is pan of the lab Rer FrA tetera utora agues aucoras AEuring Anastononos Antheonosde abcanden
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY