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

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

Essay Writing Discursive Essays Opinion Essay
Essay Writing Discursive Essays Opinion EssayEssay Writing Discursive Essays Opinion Essay
Essay Writing Discursive Essays Opinion Essay
Jessica Navarro
 
I 3300 51 Apologetics Part 5a
I 3300 51 Apologetics Part 5aI 3300 51 Apologetics Part 5a
I 3300 51 Apologetics Part 5a
S Meyer
 
Reflection Essay Harvard Supplemental Essay 2021
Reflection Essay Harvard Supplemental Essay 2021Reflection Essay Harvard Supplemental Essay 2021
Reflection Essay Harvard Supplemental Essay 2021
Kate Campbell
 
Writing for the Web
Writing for the WebWriting for the Web
Writing for the Web
Mickey Mellen
 
A Civil Action Essay. Civil War Inevitable Essay
A Civil Action Essay. Civil War Inevitable EssayA Civil Action Essay. Civil War Inevitable Essay
A Civil Action Essay. Civil War Inevitable Essay
Erica Mondesir
 
Mla Quoting Dialogue 4 Ways To Quote And Cite A Play In An Essay
Mla Quoting Dialogue 4 Ways To Quote And Cite A Play In An EssayMla Quoting Dialogue 4 Ways To Quote And Cite A Play In An Essay
Mla Quoting Dialogue 4 Ways To Quote And Cite A Play In An Essay
Christina Martin
 
Themes For Essay Writing
Themes For Essay WritingThemes For Essay Writing
Themes For Essay Writing
Cynthia Harder
 
The Gettysburg Address
The Gettysburg AddressThe Gettysburg Address
The Gettysburg Addressmdlittleone
 
Gettysburg address
Gettysburg addressGettysburg address
Gettysburg addresssarahvroom
 
My Pet Hamster Essay. Online assignment writing service.
My Pet Hamster Essay. Online assignment writing service.My Pet Hamster Essay. Online assignment writing service.
My Pet Hamster Essay. Online assignment writing service.
Inell Campbell
 
In this grave hour
In this grave hourIn this grave hour
In this grave hourromey123
 
The gettysburg-address
The gettysburg-addressThe gettysburg-address
The gettysburg-addressjarredhaas
 
Essay On War. World War 1 Essay Introduction Telegraph
Essay On War. World War 1 Essay Introduction  TelegraphEssay On War. World War 1 Essay Introduction  Telegraph
Essay On War. World War 1 Essay Introduction Telegraph
Monique Carter
 
A few words can change a life
A few words can change a lifeA few words can change a life
A few words can change a life
Al Batinga
 
Comment Structurer Un Essai Un Guide Pour Les Tudian
Comment Structurer Un Essai Un Guide Pour Les TudianComment Structurer Un Essai Un Guide Pour Les Tudian
Comment Structurer Un Essai Un Guide Pour Les Tudian
Wendy Boyd
 
Joseph Gibaldi Mla Handbook For Writers Of Research Pap
Joseph Gibaldi Mla Handbook For Writers Of Research PapJoseph Gibaldi Mla Handbook For Writers Of Research Pap
Joseph Gibaldi Mla Handbook For Writers Of Research Pap
Stacy Vasquez
 
14th Century articleA CLOSER LOOK AT CONTEXT—THE BLACK PLAGU
14th Century articleA CLOSER LOOK AT CONTEXT—THE BLACK PLAGU14th Century articleA CLOSER LOOK AT CONTEXT—THE BLACK PLAGU
14th Century articleA CLOSER LOOK AT CONTEXT—THE BLACK PLAGU
EttaBenton28
 
14th Century articleA CLOSER LOOK AT CONTEXT—THE BLACK PLAGU
14th Century articleA CLOSER LOOK AT CONTEXT—THE BLACK PLAGU14th Century articleA CLOSER LOOK AT CONTEXT—THE BLACK PLAGU
14th Century articleA CLOSER LOOK AT CONTEXT—THE BLACK PLAGU
MatthewTennant613
 
How to be the best at the worst talk ever
How to be the best at the worst talk everHow to be the best at the worst talk ever
How to be the best at the worst talk ever
kitthod
 

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

Essay Writing Discursive Essays Opinion Essay
Essay Writing Discursive Essays Opinion EssayEssay Writing Discursive Essays Opinion Essay
Essay Writing Discursive Essays Opinion Essay
 
I 3300 51 Apologetics Part 5a
I 3300 51 Apologetics Part 5aI 3300 51 Apologetics Part 5a
I 3300 51 Apologetics Part 5a
 
Reflection Essay Harvard Supplemental Essay 2021
Reflection Essay Harvard Supplemental Essay 2021Reflection Essay Harvard Supplemental Essay 2021
Reflection Essay Harvard Supplemental Essay 2021
 
Writing for the Web
Writing for the WebWriting for the Web
Writing for the Web
 
A Civil Action Essay. Civil War Inevitable Essay
A Civil Action Essay. Civil War Inevitable EssayA Civil Action Essay. Civil War Inevitable Essay
A Civil Action Essay. Civil War Inevitable Essay
 
Mla Quoting Dialogue 4 Ways To Quote And Cite A Play In An Essay
Mla Quoting Dialogue 4 Ways To Quote And Cite A Play In An EssayMla Quoting Dialogue 4 Ways To Quote And Cite A Play In An Essay
Mla Quoting Dialogue 4 Ways To Quote And Cite A Play In An Essay
 
Themes For Essay Writing
Themes For Essay WritingThemes For Essay Writing
Themes For Essay Writing
 
The Gettysburg Address
The Gettysburg AddressThe Gettysburg Address
The Gettysburg Address
 
Gettysburg address
Gettysburg addressGettysburg address
Gettysburg address
 
My Pet Hamster Essay. Online assignment writing service.
My Pet Hamster Essay. Online assignment writing service.My Pet Hamster Essay. Online assignment writing service.
My Pet Hamster Essay. Online assignment writing service.
 
In this grave hour
In this grave hourIn this grave hour
In this grave hour
 
The gettysburg-address
The gettysburg-addressThe gettysburg-address
The gettysburg-address
 
Essay On War. World War 1 Essay Introduction Telegraph
Essay On War. World War 1 Essay Introduction  TelegraphEssay On War. World War 1 Essay Introduction  Telegraph
Essay On War. World War 1 Essay Introduction Telegraph
 
Paragraph structure
Paragraph structureParagraph structure
Paragraph structure
 
A few words can change a life
A few words can change a lifeA few words can change a life
A few words can change a life
 
Comment Structurer Un Essai Un Guide Pour Les Tudian
Comment Structurer Un Essai Un Guide Pour Les TudianComment Structurer Un Essai Un Guide Pour Les Tudian
Comment Structurer Un Essai Un Guide Pour Les Tudian
 
Joseph Gibaldi Mla Handbook For Writers Of Research Pap
Joseph Gibaldi Mla Handbook For Writers Of Research PapJoseph Gibaldi Mla Handbook For Writers Of Research Pap
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 PLAGU14th Century articleA CLOSER LOOK AT CONTEXT—THE BLACK PLAGU
14th Century articleA CLOSER LOOK AT CONTEXT—THE BLACK PLAGU
 
14th Century articleA CLOSER LOOK AT CONTEXT—THE BLACK PLAGU
14th Century articleA CLOSER LOOK AT CONTEXT—THE BLACK PLAGU14th Century articleA CLOSER LOOK AT CONTEXT—THE BLACK PLAGU
14th Century articleA CLOSER LOOK AT CONTEXT—THE BLACK PLAGU
 
How to be the best at the worst talk ever
How to be the best at the worst talk everHow to be the best at the worst talk ever
How to be the best at the worst talk ever
 

More from amabajisgents

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

More from amabajisgents (20)

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

Recently uploaded

The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
goswamiyash170123
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
Krisztián Száraz
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
JEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questionsJEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questions
ShivajiThube2
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 

Recently uploaded (20)

The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
JEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questionsJEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questions
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .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.