SlideShare a Scribd company logo
The purpose of this project is to develop a code which will compare a pair of text. files
containing English sentences from a vocabulary standpoint. Refer to the text content as "text01"
and "text02". The following interaction with the user takes place: Enter the filename of text1;
filenamel, txt Enter the ft lename of text2 : flename2.txt Select a menu optiont Bnter 1 tor total
character count both files (1etters only) Bnter 2 for total word count, both files (no punctuation)
Enter 3 for unique word count both files Enter 4 for unique word count only in text1 and only in
text? (option 5 removed 3/20/23 ) Enter 6 to quit Each of the firat five options should be handled
by one function that you write. For example, with option 1 , this call would be made: ch1, ch2 =
charcount (text1, itext2) handle option'1 Where textl and text2 are strings of text read from the
selected files and chl and ch2 are the total number of characters in each file. In a similar manner
the other functions would be: wordi, word2 = wordsopt2(text1, text2) t handle option 2 uword1,
urordz = wordsopt 3 (text1, text2) handle option 3 etc for the other options - use good naming
conventions. You will also need a menu function which presents the menu and a while loop in
main which continues to present the menu until option? is entered. You wil use the set function
and operations for options 3, 4, and 5. The first pair of files will be: Visit to Water park Grade
1,txt Blocklng Beethoven Grade 5 , txt The firat file in for elenentary school readern in grade 1
and the second is for grade 5. Using your program output netrica can you draw any conclusions
based on number of unique words? R.g. can you conclude that the qrade 6 text is verbally more
advanced? Do a similar analysis on US presential speches by Abraham tincoln arid John F.
Kennedy, These speeches are in files: gettysburg_address, txt: JFK Berlin Speech, txt
Write down yout conclustons about both pairg of files and Include in a txt docuteft catled
outputsuntary, txt. Are there other metrica whtch should have been gtudied such as average word
length? Or is it sufficient in your option to base the conclusion on the ratio of the number of
unique words divided by the total number of. words, for example. Requirements : 1. Use easy to
understand input, and output. 2. Use variable names which are reflective of their meaning. 4. Use
a sufficient number of comments to make your code underitandable. 5. Ran a sufficient number
of sample cases to confirm that you program is sorking.
Several have asked similar questions about Project 3 . Here is a restatement of the menu
requirements: Opt 1 - shows char count in text1 and char count in text2 Opt 2 - shows word
count in text 1 and word count in text2 Opt 3 - shows unique word count in text1 and unique
word count in text2 Opt 4 - same as Opt 3 but allows you to select which text you want the
unique word count for. Opt 4 - (deleted) Opt 5 - quit
Four score and seven years ago our fathers brought forth on this continent, a new nation,
conceived in Liberty, and dedicated to the proposition that all men are created equal. Now we are
engaged in a great civil war, testing whether that nation, or any nation so conceived and so
dedicated, can long endure. We are met on a great battle-field of that war. We have come to
dedicate a portion of that field, as a final resting place for those who here gave their lives that
that nation might live. It is altogether fitting and proper that we should do this. But, in a larger
sense, we can not dedicate .. we can not consecrate we can not hallow ... this ground. The brave
men, living and dead, who struggled here, have consecrated it, far above our poor power to add
or detract. The world will little note, nor long remember what we say here, but it can never forget
what they did here. It is for us the living, rather, to be dedicated here to the unfinished work
which they who fought here have thus far so nobly advanced. It is rather for us to be here
dedicated to the great task remaining before us .. that from these honored dead we take increased
devotion to that cause for which they gave the last full measure of devotion ... that we here
highly resolve that these dead shall not have died in vain ... that this nation, under God, shall
have a new birth of freedom ... and that government of the people, by the people, for the people,
shall not perish from the earth.
I an proud to coee to this city as the guest of your distinuished Mayor, wha kas syboolited
throughout the world the fightine spirit of Wrst Beelin. Mad t an proud to visit the Federal
kepublie with your distinguishes chancellor who for so many years has comeitted cermany to
denocracy and fretdoe and progress, and co some here in the conpuny of my fellov Aperican,
Geveral clwy, whe has been in this city durine its ereat nosents of crisis and wild cose again if
ever needed. Two thousand years ago the proudest boast was "civis moanus sue", Today, in the
world of freedoo, the proudest boast is "Ich bin ein Berliner". I acgceciate ey interpceter
trastlating ny Gernani Thece are nany proole in the world who really don't understand, or say
they don't, wht is the creat issue betiven the free world and the coenunist world. Let we cah work
with the comonists. Let the cone to ferlin. And there are eve a fen who say that It is true that
conpunisi is an evil syaten, but it pernits us to. make cconomic progress. Lass' sir aach Berlin
lomen. Let then cone to berlis. Freeson has many aifficulties and Genocracy is not perfect, but
we have never had to put a wall up-to keep our people in, to prevent them fron leaving as. 1 want
to say, ce behalf of ny countrynes, who live eary alles way on the otber side of the Atlantic, who
are far distant fron you, that they take the greatest pride that they have been able to share with
you, twen from a distance, the story of the last 18 years, 1 know of no toun, no city, that has been
besieged for 18 years that still ifves with the vitality and the force, and the hope and the
determiation of the city of hest Berlin. while the wall is the most oevious and vivid oronstration
of the fallures of the comenist systes, for all the world to see, we take no satisfaction in it, for it
is, as your mayor tas said, an offense not only agatinst histery but an offense against minanity.
separatine faeilies, dividine hustands and wives and brethers and sisters, and dividing a people
ohe wish. to be joined totetber. Whatiis true of this city is true of cernowy - real, Insting peace in
turbpe can mever be assured as lang an one carman out of four is denied the elenentare Ththe of
free meen, and that is to make a free cholce. In 1 it yeare of peace and good talth, this generation
of Gerans has earned the right to be free, inctoding the right to unite their fooilies and their
nation is lasting peace, with aood will to al1 people. vou live In a defended island of freedor, bot
your Iffe is part of the msin. So let ne ask you as I close, to Hift youn eyes beyoud the dangers of
todoy. to the hopes of tomarrew, beyond the feedoe merely of this city of beelin, ce your country
of cernamy, to the advance of fretedon everyosere, beyond the wall to the day of peice with
fustice, bevond yourselves and ourselves eo a11 mankind. Freedon is andivisible, and when one
man is enslayed, all are mot tree, then all are iree, then we cas look forward to that day when this
city will ge foined as ome and this country and this great continent of curepe in a peateful and
hopeful tlobe, when that day finally cones, as it witl, the people af liest Berilin can. twe sober
satisfaction in the fact that they were in the frong lines for almost two decades. Al1 free sen,
wherever they may live, ace cittrem of Berlin, and, therefore, as o free man, I take-gride in the
worts "teh bis ein Beeliner.

More Related Content

PDF
help write program Project Desoription The purpose of thi project i.pdf
PDF
Project Desoription The purpose of this project is to dovelop a code.pdf
PDF
The purpose of this project is to develop a code which will .pdf
PDF
UK LNAT Sample Paper
PPT
PowerPoint: The Good, The Bad and The Ugly. (Just Kidding: There’s Nothing Go...
PPT
costantini
PDF
Causes Northern Ireland Conflict Essay
PDF
Why Openai S Chatgpt Essay W. Online assignment writing service.
help write program Project Desoription The purpose of thi project i.pdf
Project Desoription The purpose of this project is to dovelop a code.pdf
The purpose of this project is to develop a code which will .pdf
UK LNAT Sample Paper
PowerPoint: The Good, The Bad and The Ugly. (Just Kidding: There’s Nothing Go...
costantini
Causes Northern Ireland Conflict Essay
Why Openai S Chatgpt Essay W. Online assignment writing service.

Similar to The purpose of this project is to develop a code which will compare a.pdf (20)

PDF
Essay Writing Discursive Essays Opinion Essay
PPTX
I 3300 51 Apologetics Part 5a
PDF
Reflection Essay Harvard Supplemental Essay 2021
ODP
Writing for the Web
PDF
A Civil Action Essay. Civil War Inevitable Essay
PDF
Mla Quoting Dialogue 4 Ways To Quote And Cite A Play In An Essay
PDF
Themes For Essay Writing
PPT
The Gettysburg Address
PPT
Gettysburg address
PDF
My Pet Hamster Essay. Online assignment writing service.
DOC
In this grave hour
PPT
The gettysburg-address
PDF
Essay On War. World War 1 Essay Introduction Telegraph
PDF
Paragraph structure
PPTX
A few words can change a life
PDF
Comment Structurer Un Essai Un Guide Pour Les Tudian
PDF
Joseph Gibaldi Mla Handbook For Writers Of Research Pap
DOCX
14th Century articleA CLOSER LOOK AT CONTEXT—THE BLACK PLAGU
DOCX
14th Century articleA CLOSER LOOK AT CONTEXT—THE BLACK PLAGU
PDF
Canadian Politics Essay Topics
Essay Writing Discursive Essays Opinion Essay
I 3300 51 Apologetics Part 5a
Reflection Essay Harvard Supplemental Essay 2021
Writing for the Web
A Civil Action Essay. Civil War Inevitable Essay
Mla Quoting Dialogue 4 Ways To Quote And Cite A Play In An Essay
Themes For Essay Writing
The Gettysburg Address
Gettysburg address
My Pet Hamster Essay. Online assignment writing service.
In this grave hour
The gettysburg-address
Essay On War. World War 1 Essay Introduction Telegraph
Paragraph structure
A few words can change a life
Comment Structurer Un Essai Un Guide Pour Les Tudian
Joseph Gibaldi Mla Handbook For Writers Of Research Pap
14th Century articleA CLOSER LOOK AT CONTEXT—THE BLACK PLAGU
14th Century articleA CLOSER LOOK AT CONTEXT—THE BLACK PLAGU
Canadian Politics Essay Topics

More from amabajisgents (20)

PDF
The population proportion is 0.45 . What is the probability that a sa.pdf
PDF
The Poisson distribution, with unknown parameter 0, has probability .pdf
PDF
The paired data below consist of the height (in cm ) of Swedish 10 ye.pdf
PDF
The offspring of two fast plants of unknown genotypes are shown.pdf
PDF
The Saint Lucia Blood Bank, a private charity partly supported by gov.pdf
PDF
The risks that cooperative strategies often carry include which of th.pdf
PDF
the right. S1 represents the marginal private cost of production and .pdf
PDF
The Republic of Yuck is a simple economy with no government, no taxes.pdf
PDF
The reservoir for a disease can be living or non-living True False Qu.pdf
PDF
The regression table below is from Did Highways Cause Suburbanizatio.pdf
PDF
The records at the end of January of the current year for Young Compa.pdf
PDF
The random variables X and Y have joint probability density function .pdf
PDF
The questions below all refer to the following pedigree. In humans, t.pdf
PDF
The radar product is based on how high the 40dBZ reflectivity thresho.pdf
PDF
The neutrality of money (a) In what sense is money neutral How is mo.pdf
PDF
The net present value method is a better method of evaluation than th.pdf
PDF
The purpose of this blog post is for you to discuss the history of tu.pdf
PDF
The production manager of a retail company chain in Australian wants .pdf
PDF
The Production Department planned to work 4,500 labor hours in March .pdf
PDF
The probablity density function of a random variable X is as follows .pdf
The population proportion is 0.45 . What is the probability that a sa.pdf
The Poisson distribution, with unknown parameter 0, has probability .pdf
The paired data below consist of the height (in cm ) of Swedish 10 ye.pdf
The offspring of two fast plants of unknown genotypes are shown.pdf
The Saint Lucia Blood Bank, a private charity partly supported by gov.pdf
The risks that cooperative strategies often carry include which of th.pdf
the right. S1 represents the marginal private cost of production and .pdf
The Republic of Yuck is a simple economy with no government, no taxes.pdf
The reservoir for a disease can be living or non-living True False Qu.pdf
The regression table below is from Did Highways Cause Suburbanizatio.pdf
The records at the end of January of the current year for Young Compa.pdf
The random variables X and Y have joint probability density function .pdf
The questions below all refer to the following pedigree. In humans, t.pdf
The radar product is based on how high the 40dBZ reflectivity thresho.pdf
The neutrality of money (a) In what sense is money neutral How is mo.pdf
The net present value method is a better method of evaluation than th.pdf
The purpose of this blog post is for you to discuss the history of tu.pdf
The production manager of a retail company chain in Australian wants .pdf
The Production Department planned to work 4,500 labor hours in March .pdf
The probablity density function of a random variable X is as follows .pdf

Recently uploaded (20)

PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PDF
HVAC Specification 2024 according to central public works department
PDF
IGGE1 Understanding the Self1234567891011
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
DOCX
Cambridge-Practice-Tests-for-IELTS-12.docx
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PDF
Hazard Identification & Risk Assessment .pdf
PDF
Complications of Minimal Access-Surgery.pdf
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
Environmental Education MCQ BD2EE - Share Source.pdf
Paper A Mock Exam 9_ Attempt review.pdf.
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
FORM 1 BIOLOGY MIND MAPS and their schemes
HVAC Specification 2024 according to central public works department
IGGE1 Understanding the Self1234567891011
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
AI-driven educational solutions for real-life interventions in the Philippine...
Cambridge-Practice-Tests-for-IELTS-12.docx
Share_Module_2_Power_conflict_and_negotiation.pptx
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
Hazard Identification & Risk Assessment .pdf
Complications of Minimal Access-Surgery.pdf
A powerpoint presentation on the Revised K-10 Science Shaping Paper
TNA_Presentation-1-Final(SAVE)) (1).pptx

The purpose of this project is to develop a code which will compare a.pdf

  • 1. The purpose of this project is to develop a code which will compare a pair of text. files containing English sentences from a vocabulary standpoint. Refer to the text content as "text01" and "text02". The following interaction with the user takes place: Enter the filename of text1; filenamel, txt Enter the ft lename of text2 : flename2.txt Select a menu optiont Bnter 1 tor total character count both files (1etters only) Bnter 2 for total word count, both files (no punctuation) Enter 3 for unique word count both files Enter 4 for unique word count only in text1 and only in text? (option 5 removed 3/20/23 ) Enter 6 to quit Each of the firat five options should be handled by one function that you write. For example, with option 1 , this call would be made: ch1, ch2 = charcount (text1, itext2) handle option'1 Where textl and text2 are strings of text read from the selected files and chl and ch2 are the total number of characters in each file. In a similar manner the other functions would be: wordi, word2 = wordsopt2(text1, text2) t handle option 2 uword1, urordz = wordsopt 3 (text1, text2) handle option 3 etc for the other options - use good naming conventions. You will also need a menu function which presents the menu and a while loop in main which continues to present the menu until option? is entered. You wil use the set function and operations for options 3, 4, and 5. The first pair of files will be: Visit to Water park Grade 1,txt Blocklng Beethoven Grade 5 , txt The firat file in for elenentary school readern in grade 1 and the second is for grade 5. Using your program output netrica can you draw any conclusions based on number of unique words? R.g. can you conclude that the qrade 6 text is verbally more advanced? Do a similar analysis on US presential speches by Abraham tincoln arid John F. Kennedy, These speeches are in files: gettysburg_address, txt: JFK Berlin Speech, txt Write down yout conclustons about both pairg of files and Include in a txt docuteft catled outputsuntary, txt. Are there other metrica whtch should have been gtudied such as average word length? Or is it sufficient in your option to base the conclusion on the ratio of the number of unique words divided by the total number of. words, for example. Requirements : 1. Use easy to understand input, and output. 2. Use variable names which are reflective of their meaning. 4. Use a sufficient number of comments to make your code underitandable. 5. Ran a sufficient number of sample cases to confirm that you program is sorking. Several have asked similar questions about Project 3 . Here is a restatement of the menu requirements: Opt 1 - shows char count in text1 and char count in text2 Opt 2 - shows word count in text 1 and word count in text2 Opt 3 - shows unique word count in text1 and unique word count in text2 Opt 4 - same as Opt 3 but allows you to select which text you want the unique word count for. Opt 4 - (deleted) Opt 5 - quit Four score and seven years ago our fathers brought forth on this continent, a new nation,
  • 2. conceived in Liberty, and dedicated to the proposition that all men are created equal. Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and so dedicated, can long endure. We are met on a great battle-field of that war. We have come to dedicate a portion of that field, as a final resting place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this. But, in a larger sense, we can not dedicate .. we can not consecrate we can not hallow ... this ground. The brave men, living and dead, who struggled here, have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is rather for us to be here dedicated to the great task remaining before us .. that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion ... that we here highly resolve that these dead shall not have died in vain ... that this nation, under God, shall have a new birth of freedom ... and that government of the people, by the people, for the people, shall not perish from the earth. I an proud to coee to this city as the guest of your distinuished Mayor, wha kas syboolited throughout the world the fightine spirit of Wrst Beelin. Mad t an proud to visit the Federal kepublie with your distinguishes chancellor who for so many years has comeitted cermany to denocracy and fretdoe and progress, and co some here in the conpuny of my fellov Aperican, Geveral clwy, whe has been in this city durine its ereat nosents of crisis and wild cose again if ever needed. Two thousand years ago the proudest boast was "civis moanus sue", Today, in the world of freedoo, the proudest boast is "Ich bin ein Berliner". I acgceciate ey interpceter trastlating ny Gernani Thece are nany proole in the world who really don't understand, or say they don't, wht is the creat issue betiven the free world and the coenunist world. Let we cah work with the comonists. Let the cone to ferlin. And there are eve a fen who say that It is true that conpunisi is an evil syaten, but it pernits us to. make cconomic progress. Lass' sir aach Berlin lomen. Let then cone to berlis. Freeson has many aifficulties and Genocracy is not perfect, but we have never had to put a wall up-to keep our people in, to prevent them fron leaving as. 1 want to say, ce behalf of ny countrynes, who live eary alles way on the otber side of the Atlantic, who are far distant fron you, that they take the greatest pride that they have been able to share with you, twen from a distance, the story of the last 18 years, 1 know of no toun, no city, that has been besieged for 18 years that still ifves with the vitality and the force, and the hope and the determiation of the city of hest Berlin. while the wall is the most oevious and vivid oronstration of the fallures of the comenist systes, for all the world to see, we take no satisfaction in it, for it is, as your mayor tas said, an offense not only agatinst histery but an offense against minanity.
  • 3. separatine faeilies, dividine hustands and wives and brethers and sisters, and dividing a people ohe wish. to be joined totetber. Whatiis true of this city is true of cernowy - real, Insting peace in turbpe can mever be assured as lang an one carman out of four is denied the elenentare Ththe of free meen, and that is to make a free cholce. In 1 it yeare of peace and good talth, this generation of Gerans has earned the right to be free, inctoding the right to unite their fooilies and their nation is lasting peace, with aood will to al1 people. vou live In a defended island of freedor, bot your Iffe is part of the msin. So let ne ask you as I close, to Hift youn eyes beyoud the dangers of todoy. to the hopes of tomarrew, beyond the feedoe merely of this city of beelin, ce your country of cernamy, to the advance of fretedon everyosere, beyond the wall to the day of peice with fustice, bevond yourselves and ourselves eo a11 mankind. Freedon is andivisible, and when one man is enslayed, all are mot tree, then all are iree, then we cas look forward to that day when this city will ge foined as ome and this country and this great continent of curepe in a peateful and hopeful tlobe, when that day finally cones, as it witl, the people af liest Berilin can. twe sober satisfaction in the fact that they were in the frong lines for almost two decades. Al1 free sen, wherever they may live, ace cittrem of Berlin, and, therefore, as o free man, I take-gride in the worts "teh bis ein Beeliner.