SlideShare a Scribd company logo
The purpose of this project is to develop a code which will conpare a pair of text filen containing
English sentences from a vocabulary standpoint. Fefer to the text. content as "text01" and
"text02". The folloving interaction with the uaer takes place: Enter the filename of text1:
filenamel.txt Enter the filename of text2: filename2. txt Select a menu option: Enter 1 for total
character count both files (1etcers only) Enter 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 textl and only in textz
Enter 5 for unique words eount in both files Enter 6 to quit Each of the first 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, text 2) t handle option 1 where text1 and text2 are strings of text read from
the selected files and ohl 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) i handle option 2 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- 7 is
entered. You will use the set function and operations for [options 3, 4, and 5. The first pair of files
will be: Viait to Water Park Grade 1 . txt Blocking Beethoven Grade 5.txt The first file is for
elementary school readera in grade 1 and the recond is for grade 5. Using your program output
metrics can you draw any conclusions based on number of unique words? E.g. Can you conclude
that the grade 6 text is verbally more advanced? Do a similar analysis on US presential speeches
by Abraham Lincoln and John F. Kennedy. These apeeches are in files: gettysburg address. txt
JFK Berlin speech.txtWrite down your conclusions about both paira of filea and include in a txt
document called outputaumary.txt. Are there other metrics which should have been atudied auch
as average word iength? of is it auffioient 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 t 1. Uae
easy to underatand input and output. 2. Use variable names which ate reflective of theit meaning.
4. Uae a sufficiont number of commenta to make your code underatandable. 5. Run a auffieient
number of sample cases to confirm that you program is working. Check tist and Grading points
(Rubric) : 1. Name your file fileprefixprojecto3.py. (1 point) 2. Include a header comment block at
the top of your file. (1 point) Name: (yout name) Course: CS 1160 Assignment: Project 03 Date
Asaignedt 3/15/2023 Filenamet fileprofixprojecto3.py 1 Brief Deacription: Vocabulary Analysis of
Text 3. Use meaningful variable names and comments. (1 points) 4. Correct, efficient and
understandable use of flies (5 point) 5. Correct analysia of filea with easy-to-use menu system. (10
point) 6. Correct use of 1 sts, sets and strings (5 points) 7. Sample output as comments at end of
file (1 point) 8. Submittal of py, txt, and html files (1 point)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.1 an pesud to come to this
city as the suest of your dist inguished Mayor, who hat syabolized throughout the worid the figating
spirit af weat ber Iif. Mad I an. cone Mere th the cospany of my fellew moerican, Deneral clay. Who
has been in this city during its great opents of erisis and wili cose igain if ever needed. I apprecinte
wy interpieter translating wy ceitant. There are many people in the vorle who realiy don't
understand, or tay they don't, whst is the great iskue betueen the fred morld and the Coaminise
iepid. Let. we can work with the coeminiots, trit then cose to Berlin. And there are even a few tho
say that it Is true that coesuise is an evil oystet, fue if pernife as to make econonic progiess. Lass",
sie nach berlin komen. Iot thes cose to derilf. Treeale his many diffieulties and democracy is not
pefect, but we have never had to put a wall we to keep our people in, to prevent thes tran ieavind
os. I want to say. on behalf of ty ceyetryeen, who live many niles may on the other aide of the
Atiantic, who bre far distant frue you, that they take the areateic peide. the still itves with the vitality
and the force, ond the bope and the deteraination of the city of Mest aerilin. While the wall is the
aise obvieos and vivid. te be jeined toestier. What is thop of this dity is true of bermany - resl.
lastine peace in furece can never be asured as lone as ene berian out of four is denied the
elementary. rieht of tree men, and thet is to eate a free cholce. In se vears of peace and goed
falth, this generation of Gernans kas earned the pight to be free, incluating. the richt, to unite their.
faeilies and their nation in lasting peace, with good will to ali people. You live in a defanded islars
af fretdoe, but your aife is. al1 marikind Freedoe in thatvisible, and wen one man is enalaved, all
are oot free. When all are free, then we can luok fonward to that day when this city will be joinet at
one and thits country and this rreat continent of turope in a peaceful and hopeful globe. Whes that
day finally cones, as it aill, the peeple of Hese Berlin can tak sober satisfaction in the fact that they
were in the frent lines for alesst too decades. Wi1 tree men, werever they may 1ive, are cititent of
berlin, and, therefere, as a free nan, t take pride in the words 'Ieh bin ein lerlinee"

More Related Content

PDF
Project Desoription The purpose of this project is to dovelop a code.pdf
PDF
help write program Project Desoription The purpose of thi project i.pdf
PDF
The purpose of this project is to develop a code which will compare a.pdf
DOCX
This is the -declare-txt-- In Congress- July 4- 1776 The unanimous De.docx
PDF
Washington's Newburgh Address
PDF
The production function of a restaurant includes items such .pdf
PDF
The parent Rubidium87 has a halflife of 50 billion years .pdf
PDF
The portfolios identified below are being considered for inv.pdf
Project Desoription The purpose of this project is to dovelop a code.pdf
help write program Project Desoription The purpose of thi project i.pdf
The purpose of this project is to develop a code which will compare a.pdf
This is the -declare-txt-- In Congress- July 4- 1776 The unanimous De.docx
Washington's Newburgh Address
The production function of a restaurant includes items such .pdf
The parent Rubidium87 has a halflife of 50 billion years .pdf
The portfolios identified below are being considered for inv.pdf

More from adithvrc (20)

PDF
The Rings of Saturn There are many planetary subsystems with.pdf
PDF
The residents living in the community of Joy has a big pro.pdf
PDF
The Protocol We present the protocol sequentially though if.pdf
PDF
The route of the planned Galway City outer bypass is entirel.pdf
PDF
The riskiness of publicly traded bond issues is rated by ind.pdf
PDF
The rate of photosynthesis as indicated by oxygen productio.pdf
PDF
The random variable Y with a density function given by fy.pdf
PDF
The program below is written in C++ language using an Object.pdf
PDF
The probability that a patient recovers from a stomach disea.pdf
PDF
The protocol will use the following building blocks The Inn.pdf
PDF
The questionnaires prescreening tools and screening script.pdf
PDF
The Public Company Accounting Oversishit Board PCAOB Whs c.pdf
PDF
The program first reads integer participantCount from input.pdf
PDF
The Pulfrich effect demonstrates one way in which the human .pdf
PDF
The purpose of the decision analysis phase is to Identify .pdf
PDF
The previous year had an unemployment rate of 108 nominal.pdf
PDF
The price of a stock fluctuates between 43 and 560 H the .pdf
PDF
The process of selecting elements from a population collect.pdf
PDF
THE PROBLEMATIC WHISTLEBLOWER Paul ODoherty is the ethics o.pdf
PDF
The problem at the center of RSA is finding the eth root of.pdf
The Rings of Saturn There are many planetary subsystems with.pdf
The residents living in the community of Joy has a big pro.pdf
The Protocol We present the protocol sequentially though if.pdf
The route of the planned Galway City outer bypass is entirel.pdf
The riskiness of publicly traded bond issues is rated by ind.pdf
The rate of photosynthesis as indicated by oxygen productio.pdf
The random variable Y with a density function given by fy.pdf
The program below is written in C++ language using an Object.pdf
The probability that a patient recovers from a stomach disea.pdf
The protocol will use the following building blocks The Inn.pdf
The questionnaires prescreening tools and screening script.pdf
The Public Company Accounting Oversishit Board PCAOB Whs c.pdf
The program first reads integer participantCount from input.pdf
The Pulfrich effect demonstrates one way in which the human .pdf
The purpose of the decision analysis phase is to Identify .pdf
The previous year had an unemployment rate of 108 nominal.pdf
The price of a stock fluctuates between 43 and 560 H the .pdf
The process of selecting elements from a population collect.pdf
THE PROBLEMATIC WHISTLEBLOWER Paul ODoherty is the ethics o.pdf
The problem at the center of RSA is finding the eth root of.pdf

Recently uploaded (20)

PDF
IGGE1 Understanding the Self1234567891011
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
Computing-Curriculum for Schools in Ghana
PDF
advance database management system book.pdf
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PDF
What if we spent less time fighting change, and more time building what’s rig...
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PPTX
History, Philosophy and sociology of education (1).pptx
PDF
Weekly quiz Compilation Jan -July 25.pdf
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PPTX
Virtual and Augmented Reality in Current Scenario
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PDF
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
PDF
HVAC Specification 2024 according to central public works department
PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
IGGE1 Understanding the Self1234567891011
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Computing-Curriculum for Schools in Ghana
advance database management system book.pdf
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
What if we spent less time fighting change, and more time building what’s rig...
202450812 BayCHI UCSC-SV 20250812 v17.pptx
History, Philosophy and sociology of education (1).pptx
Weekly quiz Compilation Jan -July 25.pdf
B.Sc. DS Unit 2 Software Engineering.pptx
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Share_Module_2_Power_conflict_and_negotiation.pptx
AI-driven educational solutions for real-life interventions in the Philippine...
A powerpoint presentation on the Revised K-10 Science Shaping Paper
Virtual and Augmented Reality in Current Scenario
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
HVAC Specification 2024 according to central public works department
TNA_Presentation-1-Final(SAVE)) (1).pptx

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

  • 1. The purpose of this project is to develop a code which will conpare a pair of text filen containing English sentences from a vocabulary standpoint. Fefer to the text. content as "text01" and "text02". The folloving interaction with the uaer takes place: Enter the filename of text1: filenamel.txt Enter the filename of text2: filename2. txt Select a menu option: Enter 1 for total character count both files (1etcers only) Enter 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 textl and only in textz Enter 5 for unique words eount in both files Enter 6 to quit Each of the first 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, text 2) t handle option 1 where text1 and text2 are strings of text read from the selected files and ohl 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) i handle option 2 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- 7 is entered. You will use the set function and operations for [options 3, 4, and 5. The first pair of files will be: Viait to Water Park Grade 1 . txt Blocking Beethoven Grade 5.txt The first file is for elementary school readera in grade 1 and the recond is for grade 5. Using your program output metrics can you draw any conclusions based on number of unique words? E.g. Can you conclude that the grade 6 text is verbally more advanced? Do a similar analysis on US presential speeches by Abraham Lincoln and John F. Kennedy. These apeeches are in files: gettysburg address. txt JFK Berlin speech.txtWrite down your conclusions about both paira of filea and include in a txt document called outputaumary.txt. Are there other metrics which should have been atudied auch as average word iength? of is it auffioient 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 t 1. Uae easy to underatand input and output. 2. Use variable names which ate reflective of theit meaning. 4. Uae a sufficiont number of commenta to make your code underatandable. 5. Run a auffieient number of sample cases to confirm that you program is working. Check tist and Grading points (Rubric) : 1. Name your file fileprefixprojecto3.py. (1 point) 2. Include a header comment block at the top of your file. (1 point) Name: (yout name) Course: CS 1160 Assignment: Project 03 Date Asaignedt 3/15/2023 Filenamet fileprofixprojecto3.py 1 Brief Deacription: Vocabulary Analysis of Text 3. Use meaningful variable names and comments. (1 points) 4. Correct, efficient and understandable use of flies (5 point) 5. Correct analysia of filea with easy-to-use menu system. (10 point) 6. Correct use of 1 sts, sets and strings (5 points) 7. Sample output as comments at end of file (1 point) 8. Submittal of py, txt, and html files (1 point)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
  • 2. 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.1 an pesud to come to this city as the suest of your dist inguished Mayor, who hat syabolized throughout the worid the figating spirit af weat ber Iif. Mad I an. cone Mere th the cospany of my fellew moerican, Deneral clay. Who has been in this city during its great opents of erisis and wili cose igain if ever needed. I apprecinte wy interpieter translating wy ceitant. There are many people in the vorle who realiy don't understand, or tay they don't, whst is the great iskue betueen the fred morld and the Coaminise iepid. Let. we can work with the coeminiots, trit then cose to Berlin. And there are even a few tho say that it Is true that coesuise is an evil oystet, fue if pernife as to make econonic progiess. Lass", sie nach berlin komen. Iot thes cose to derilf. Treeale his many diffieulties and democracy is not pefect, but we have never had to put a wall we to keep our people in, to prevent thes tran ieavind os. I want to say. on behalf of ty ceyetryeen, who live many niles may on the other aide of the Atiantic, who bre far distant frue you, that they take the areateic peide. the still itves with the vitality and the force, ond the bope and the deteraination of the city of Mest aerilin. While the wall is the aise obvieos and vivid. te be jeined toestier. What is thop of this dity is true of bermany - resl. lastine peace in furece can never be asured as lone as ene berian out of four is denied the elementary. rieht of tree men, and thet is to eate a free cholce. In se vears of peace and goed falth, this generation of Gernans kas earned the pight to be free, incluating. the richt, to unite their. faeilies and their nation in lasting peace, with good will to ali people. You live in a defanded islars af fretdoe, but your aife is. al1 marikind Freedoe in thatvisible, and wen one man is enalaved, all are oot free. When all are free, then we can luok fonward to that day when this city will be joinet at one and thits country and this rreat continent of turope in a peaceful and hopeful globe. Whes that day finally cones, as it aill, the peeple of Hese Berlin can tak sober satisfaction in the fact that they were in the frent lines for alesst too decades. Wi1 tree men, werever they may 1ive, are cititent of berlin, and, therefere, as a free nan, t take pride in the words 'Ieh bin ein lerlinee"