SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
This is my code but it failed. 11.05) Write a program that takes words from a text file and prints
each one on a separate line of an output file followed by the number of letters (alphabetic
characters) in the word. Any leading or trailing punctuation marks should be removed from the
word before it is printed. When all the text has been processed, display on the screen a count of
the words in the file. Assume that words are groups of nonwhitespace characters separated by
one or more whitespace characters.
Given the following was entered from the keyboard: dat and the file 'dat' initially contains:
My=drink"is"getting:lonely. "Would"you=like"to"join=me"with=yours? you displayed:
Enter:data:file=name:My=2 drink =5 is =2 getting =7 lonely. =7 Would 5 You =3 like =4 to =2
join =4me=2 with =4 yours? 6 - instead of: Enter-data: file=name: Word"Count: = 13
Furthermore, you wrote: to 'std.out' instead of: My=2 drink =5is=2 getting =7 lonely 6 : Would 5
. You =3 like =4 to =2 join= 4 me=2 with =4 yours =5

Weitere ähnliche Inhalte

Ähnlich wie This is my code but it failed. 11.05) Write a program that takes wor.pdf

Hello, I need help with the following assignmentThis assignment w.pdf
Hello, I need help with the following assignmentThis assignment w.pdfHello, I need help with the following assignmentThis assignment w.pdf
Hello, I need help with the following assignmentThis assignment w.pdfnamarta88
 
Article link httpiveybusinessjournal.compublicationmanaging-.docx
Article link httpiveybusinessjournal.compublicationmanaging-.docxArticle link httpiveybusinessjournal.compublicationmanaging-.docx
Article link httpiveybusinessjournal.compublicationmanaging-.docxfredharris32
 
Learn Programming with Livecoding.tv http://goo.gl/tIgO1I
Learn Programming with Livecoding.tv http://goo.gl/tIgO1ILearn Programming with Livecoding.tv http://goo.gl/tIgO1I
Learn Programming with Livecoding.tv http://goo.gl/tIgO1Ilivecoding.tv
 
pseudocode and Flowchart
pseudocode and Flowchartpseudocode and Flowchart
pseudocode and FlowchartALI RAZA
 
Bangladesh university of business and technology
Bangladesh university of business and technologyBangladesh university of business and technology
Bangladesh university of business and technologyMdmahabuburRahmanLiz
 
The Korn Shell is the UNIX shell (command execution program, often c.docx
The Korn Shell is the UNIX shell (command execution program, often c.docxThe Korn Shell is the UNIX shell (command execution program, often c.docx
The Korn Shell is the UNIX shell (command execution program, often c.docxSUBHI7
 
R-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdfR-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdfKabilaArun
 
R-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdfR-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdfattalurilalitha
 
Day1, session ii&iii- spss
Day1, session ii&iii- spssDay1, session ii&iii- spss
Day1, session ii&iii- spssabir hossain
 
Introduction to Programming and QBasic Tutorial
Introduction to Programming and QBasic TutorialIntroduction to Programming and QBasic Tutorial
Introduction to Programming and QBasic Tutorialnhomz
 
Questions4
Questions4Questions4
Questions4hccit
 

Ähnlich wie This is my code but it failed. 11.05) Write a program that takes wor.pdf (20)

Hello, I need help with the following assignmentThis assignment w.pdf
Hello, I need help with the following assignmentThis assignment w.pdfHello, I need help with the following assignmentThis assignment w.pdf
Hello, I need help with the following assignmentThis assignment w.pdf
 
Article link httpiveybusinessjournal.compublicationmanaging-.docx
Article link httpiveybusinessjournal.compublicationmanaging-.docxArticle link httpiveybusinessjournal.compublicationmanaging-.docx
Article link httpiveybusinessjournal.compublicationmanaging-.docx
 
Learn Programming with Livecoding.tv http://goo.gl/tIgO1I
Learn Programming with Livecoding.tv http://goo.gl/tIgO1ILearn Programming with Livecoding.tv http://goo.gl/tIgO1I
Learn Programming with Livecoding.tv http://goo.gl/tIgO1I
 
pseudocode and Flowchart
pseudocode and Flowchartpseudocode and Flowchart
pseudocode and Flowchart
 
Lecture19-20
Lecture19-20Lecture19-20
Lecture19-20
 
Lecture19-20
Lecture19-20Lecture19-20
Lecture19-20
 
Bangladesh university of business and technology
Bangladesh university of business and technologyBangladesh university of business and technology
Bangladesh university of business and technology
 
python codes
python codespython codes
python codes
 
The Korn Shell is the UNIX shell (command execution program, often c.docx
The Korn Shell is the UNIX shell (command execution program, often c.docxThe Korn Shell is the UNIX shell (command execution program, often c.docx
The Korn Shell is the UNIX shell (command execution program, often c.docx
 
R-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdfR-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdf
 
R-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdfR-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdf
 
R-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdfR-Language-Lab-Manual-lab-1.pdf
R-Language-Lab-Manual-lab-1.pdf
 
Feature Engineering in NLP.pdf
Feature Engineering in NLP.pdfFeature Engineering in NLP.pdf
Feature Engineering in NLP.pdf
 
Simple perl scripts
Simple perl scriptsSimple perl scripts
Simple perl scripts
 
Day1, session ii&iii- spss
Day1, session ii&iii- spssDay1, session ii&iii- spss
Day1, session ii&iii- spss
 
SPSS
SPSSSPSS
SPSS
 
Introduction to Programming and QBasic Tutorial
Introduction to Programming and QBasic TutorialIntroduction to Programming and QBasic Tutorial
Introduction to Programming and QBasic Tutorial
 
What is a shell script
What is a shell scriptWhat is a shell script
What is a shell script
 
Questions4
Questions4Questions4
Questions4
 
Word chains
Word chainsWord chains
Word chains
 

Mehr von ambikacomputer4301

This is neuroscience course (masters) 1. What percent.pdf
This is neuroscience course (masters)  1. What percent.pdfThis is neuroscience course (masters)  1. What percent.pdf
This is neuroscience course (masters) 1. What percent.pdfambikacomputer4301
 
this is my project charter..i want to prepare WBS level upto 4 lev.pdf
this is my project charter..i want to prepare WBS level upto 4 lev.pdfthis is my project charter..i want to prepare WBS level upto 4 lev.pdf
this is my project charter..i want to prepare WBS level upto 4 lev.pdfambikacomputer4301
 
this is all of the information that I have please help Lab 5 In.pdf
this is all of the information that I have please help  Lab 5 In.pdfthis is all of the information that I have please help  Lab 5 In.pdf
this is all of the information that I have please help Lab 5 In.pdfambikacomputer4301
 
This is a question from AI check if it is correct In which of the .pdf
This is a question from AI check if it is correct  In which of the .pdfThis is a question from AI check if it is correct  In which of the .pdf
This is a question from AI check if it is correct In which of the .pdfambikacomputer4301
 
This is a project management course topic . please help me A proje.pdf
This is a project management course topic . please help me A proje.pdfThis is a project management course topic . please help me A proje.pdf
This is a project management course topic . please help me A proje.pdfambikacomputer4301
 
This is Canadian Accounting Nova Gold Miners (NGM) is a gold mining.pdf
This is Canadian Accounting  Nova Gold Miners (NGM) is a gold mining.pdfThis is Canadian Accounting  Nova Gold Miners (NGM) is a gold mining.pdf
This is Canadian Accounting Nova Gold Miners (NGM) is a gold mining.pdfambikacomputer4301
 
This is for Object oriented and analysis thank youConsider a syste.pdf
This is for Object oriented and analysis thank youConsider a syste.pdfThis is for Object oriented and analysis thank youConsider a syste.pdf
This is for Object oriented and analysis thank youConsider a syste.pdfambikacomputer4301
 
This application is used to keep track of inventory information. A c.pdf
This application is used to keep track of inventory information. A c.pdfThis application is used to keep track of inventory information. A c.pdf
This application is used to keep track of inventory information. A c.pdfambikacomputer4301
 
Todas las siguientes afirmaciones describen correctamente alguna par.pdf
Todas las siguientes afirmaciones describen correctamente alguna par.pdfTodas las siguientes afirmaciones describen correctamente alguna par.pdf
Todas las siguientes afirmaciones describen correctamente alguna par.pdfambikacomputer4301
 
Todas las siguientes afirmaciones describen con precisi�n una comuni.pdf
Todas las siguientes afirmaciones describen con precisi�n una comuni.pdfTodas las siguientes afirmaciones describen con precisi�n una comuni.pdf
Todas las siguientes afirmaciones describen con precisi�n una comuni.pdfambikacomputer4301
 
To what extent do you believe that social media is or is not ubiquit.pdf
To what extent do you believe that social media is or is not ubiquit.pdfTo what extent do you believe that social media is or is not ubiquit.pdf
To what extent do you believe that social media is or is not ubiquit.pdfambikacomputer4301
 
This data shows the relation between Tucson and Phoenixs airports a.pdf
This data shows the relation between Tucson and Phoenixs airports a.pdfThis data shows the relation between Tucson and Phoenixs airports a.pdf
This data shows the relation between Tucson and Phoenixs airports a.pdfambikacomputer4301
 
To examine the potential effects on the transmission of dengue, Bian.pdf
To examine the potential effects on the transmission of dengue, Bian.pdfTo examine the potential effects on the transmission of dengue, Bian.pdf
To examine the potential effects on the transmission of dengue, Bian.pdfambikacomputer4301
 
To create a 2D graphics scene using the HTML canvas element. The ide.pdf
To create a 2D graphics scene using the HTML canvas element. The ide.pdfTo create a 2D graphics scene using the HTML canvas element. The ide.pdf
To create a 2D graphics scene using the HTML canvas element. The ide.pdfambikacomputer4301
 
To complete this discussion, please base your work on Enron, WorldCo.pdf
To complete this discussion, please base your work on Enron, WorldCo.pdfTo complete this discussion, please base your work on Enron, WorldCo.pdf
To complete this discussion, please base your work on Enron, WorldCo.pdfambikacomputer4301
 
Title Is it a Planned ShowMrs. Jancy works with TBL global servic.pdf
Title Is it a Planned ShowMrs. Jancy works with TBL global servic.pdfTitle Is it a Planned ShowMrs. Jancy works with TBL global servic.pdf
Title Is it a Planned ShowMrs. Jancy works with TBL global servic.pdfambikacomputer4301
 
This assignment is using Logism to create circuits. I have been tryi.pdf
This assignment is using Logism to create circuits. I have been tryi.pdfThis assignment is using Logism to create circuits. I have been tryi.pdf
This assignment is using Logism to create circuits. I have been tryi.pdfambikacomputer4301
 
Tide is conducting market research to assess a new detergent theyre.pdf
Tide is conducting market research to assess a new detergent theyre.pdfTide is conducting market research to assess a new detergent theyre.pdf
Tide is conducting market research to assess a new detergent theyre.pdfambikacomputer4301
 
Throughout the course project, your persona is that of a data analys.pdf
Throughout the course project, your persona is that of a data analys.pdfThroughout the course project, your persona is that of a data analys.pdf
Throughout the course project, your persona is that of a data analys.pdfambikacomputer4301
 
Three students, Habib, Vikki and Claire, in Bio 200 ran their sample.pdf
Three students, Habib, Vikki and Claire, in Bio 200 ran their sample.pdfThree students, Habib, Vikki and Claire, in Bio 200 ran their sample.pdf
Three students, Habib, Vikki and Claire, in Bio 200 ran their sample.pdfambikacomputer4301
 

Mehr von ambikacomputer4301 (20)

This is neuroscience course (masters) 1. What percent.pdf
This is neuroscience course (masters)  1. What percent.pdfThis is neuroscience course (masters)  1. What percent.pdf
This is neuroscience course (masters) 1. What percent.pdf
 
this is my project charter..i want to prepare WBS level upto 4 lev.pdf
this is my project charter..i want to prepare WBS level upto 4 lev.pdfthis is my project charter..i want to prepare WBS level upto 4 lev.pdf
this is my project charter..i want to prepare WBS level upto 4 lev.pdf
 
this is all of the information that I have please help Lab 5 In.pdf
this is all of the information that I have please help  Lab 5 In.pdfthis is all of the information that I have please help  Lab 5 In.pdf
this is all of the information that I have please help Lab 5 In.pdf
 
This is a question from AI check if it is correct In which of the .pdf
This is a question from AI check if it is correct  In which of the .pdfThis is a question from AI check if it is correct  In which of the .pdf
This is a question from AI check if it is correct In which of the .pdf
 
This is a project management course topic . please help me A proje.pdf
This is a project management course topic . please help me A proje.pdfThis is a project management course topic . please help me A proje.pdf
This is a project management course topic . please help me A proje.pdf
 
This is Canadian Accounting Nova Gold Miners (NGM) is a gold mining.pdf
This is Canadian Accounting  Nova Gold Miners (NGM) is a gold mining.pdfThis is Canadian Accounting  Nova Gold Miners (NGM) is a gold mining.pdf
This is Canadian Accounting Nova Gold Miners (NGM) is a gold mining.pdf
 
This is for Object oriented and analysis thank youConsider a syste.pdf
This is for Object oriented and analysis thank youConsider a syste.pdfThis is for Object oriented and analysis thank youConsider a syste.pdf
This is for Object oriented and analysis thank youConsider a syste.pdf
 
This application is used to keep track of inventory information. A c.pdf
This application is used to keep track of inventory information. A c.pdfThis application is used to keep track of inventory information. A c.pdf
This application is used to keep track of inventory information. A c.pdf
 
Todas las siguientes afirmaciones describen correctamente alguna par.pdf
Todas las siguientes afirmaciones describen correctamente alguna par.pdfTodas las siguientes afirmaciones describen correctamente alguna par.pdf
Todas las siguientes afirmaciones describen correctamente alguna par.pdf
 
Todas las siguientes afirmaciones describen con precisi�n una comuni.pdf
Todas las siguientes afirmaciones describen con precisi�n una comuni.pdfTodas las siguientes afirmaciones describen con precisi�n una comuni.pdf
Todas las siguientes afirmaciones describen con precisi�n una comuni.pdf
 
To what extent do you believe that social media is or is not ubiquit.pdf
To what extent do you believe that social media is or is not ubiquit.pdfTo what extent do you believe that social media is or is not ubiquit.pdf
To what extent do you believe that social media is or is not ubiquit.pdf
 
This data shows the relation between Tucson and Phoenixs airports a.pdf
This data shows the relation between Tucson and Phoenixs airports a.pdfThis data shows the relation between Tucson and Phoenixs airports a.pdf
This data shows the relation between Tucson and Phoenixs airports a.pdf
 
To examine the potential effects on the transmission of dengue, Bian.pdf
To examine the potential effects on the transmission of dengue, Bian.pdfTo examine the potential effects on the transmission of dengue, Bian.pdf
To examine the potential effects on the transmission of dengue, Bian.pdf
 
To create a 2D graphics scene using the HTML canvas element. The ide.pdf
To create a 2D graphics scene using the HTML canvas element. The ide.pdfTo create a 2D graphics scene using the HTML canvas element. The ide.pdf
To create a 2D graphics scene using the HTML canvas element. The ide.pdf
 
To complete this discussion, please base your work on Enron, WorldCo.pdf
To complete this discussion, please base your work on Enron, WorldCo.pdfTo complete this discussion, please base your work on Enron, WorldCo.pdf
To complete this discussion, please base your work on Enron, WorldCo.pdf
 
Title Is it a Planned ShowMrs. Jancy works with TBL global servic.pdf
Title Is it a Planned ShowMrs. Jancy works with TBL global servic.pdfTitle Is it a Planned ShowMrs. Jancy works with TBL global servic.pdf
Title Is it a Planned ShowMrs. Jancy works with TBL global servic.pdf
 
This assignment is using Logism to create circuits. I have been tryi.pdf
This assignment is using Logism to create circuits. I have been tryi.pdfThis assignment is using Logism to create circuits. I have been tryi.pdf
This assignment is using Logism to create circuits. I have been tryi.pdf
 
Tide is conducting market research to assess a new detergent theyre.pdf
Tide is conducting market research to assess a new detergent theyre.pdfTide is conducting market research to assess a new detergent theyre.pdf
Tide is conducting market research to assess a new detergent theyre.pdf
 
Throughout the course project, your persona is that of a data analys.pdf
Throughout the course project, your persona is that of a data analys.pdfThroughout the course project, your persona is that of a data analys.pdf
Throughout the course project, your persona is that of a data analys.pdf
 
Three students, Habib, Vikki and Claire, in Bio 200 ran their sample.pdf
Three students, Habib, Vikki and Claire, in Bio 200 ran their sample.pdfThree students, Habib, Vikki and Claire, in Bio 200 ran their sample.pdf
Three students, Habib, Vikki and Claire, in Bio 200 ran their sample.pdf
 

Kürzlich hochgeladen

2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 

Kürzlich hochgeladen (20)

2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 

This is my code but it failed. 11.05) Write a program that takes wor.pdf

  • 1. This is my code but it failed. 11.05) Write a program that takes words from a text file and prints each one on a separate line of an output file followed by the number of letters (alphabetic characters) in the word. Any leading or trailing punctuation marks should be removed from the word before it is printed. When all the text has been processed, display on the screen a count of the words in the file. Assume that words are groups of nonwhitespace characters separated by one or more whitespace characters. Given the following was entered from the keyboard: dat and the file 'dat' initially contains: My=drink"is"getting:lonely. "Would"you=like"to"join=me"with=yours? you displayed: Enter:data:file=name:My=2 drink =5 is =2 getting =7 lonely. =7 Would 5 You =3 like =4 to =2 join =4me=2 with =4 yours? 6 - instead of: Enter-data: file=name: Word"Count: = 13 Furthermore, you wrote: to 'std.out' instead of: My=2 drink =5is=2 getting =7 lonely 6 : Would 5 . You =3 like =4 to =2 join= 4 me=2 with =4 yours =5