I have attached the assignment
ELET2300 Assignment3 SubmityourprogramthroughBlackboard–Nolatesubmissions! Donotuploadthebooks,onlyyourmain.cppfile ThetaskistowriteaprogramusingthecomputerlanguageC++thatwillhelpus contrasttwohumanlanguages:EnglishandFrench. Tothisend,wewillanalyzetwolanguageversionsofthebook"OntheOriginof Species",byCharlesDarwin.Thebookisinthepublicdomainandcanberetrievedin eitherlanguagefromtheGutenbergproject: http://www.gutenberg.org/cache/epub/1228/pg1228.txt http://www.gutenberg.org/cache/epub/14158/pg14158.txt Downloadthefilestoyourcomputer.Thefilesareinplaintext.Haveapeekbyopening eachfilewitheitherNotepadorWordpad.ThenwriteaC++programthatworksinthe followingway: 1.DefineaC++functionwiththenameevaluateBook.Thefunctionreceivesasone argumentthenameofthefiletobeprocessed(i.e.,thebook'sfile).Sothatifyoupassthe Englishversion,wewillseetheresultsonlyforthatlanguage. 2.FunctionevaluateBookopensthefile,readsit,analyzesit,andprintstheanswertothe followingquestions: 1. Whatitthetotalnumberoftextlinesinthefile? 2. Whatitthenumberoftextlineswithoutanylower-caseletter?Toanswerthis question,writeandcallthefunctiontestLowerCase. 3. Whatitthenumberoftextlineswithoutanynumber?Toanswerthisquestion, writeandcallthefunctiontestNumber. 4. Whatisthetotalnumberofvisiblecharacters(so,excludinginvisiblecodessuch as'\n')?Toanswerthisquestion,writeandcallthefunctioncountCharacters. 5. Whatisthetotalnumberofletters(i.e.,excludingsymbols,numbers,etc.)?To answerthisquestion,writeandcallthefunctioncountLetters. 6. Howmanytimeseachofthefollowingpunctuationsymbolsappear:comma, period,doublequotes,singlequotes? 7. Whatisthemostpopularletter(regardlessofitscase)? 8. Theword"et"inFrenchmeans"and".Howmanytimesdoesthiswordappear? Thefunctionshouldsearchforbothwords,sothatifyoupasstheEnglish version,thecountfor"et"willbelikelyzero.Also,ignorethecase,butdonot countamatchingifpartofanotherword,suchas"Andrew". 3.YouneedtowritethefunctionstestLowerCase,testNumber,countCharacters, countLetters,whichyouwillcallfromevaluateBook.Thefunction'sargumentforeachof themisthecurrentlinefromthetextbookthatisbeingprocessed(asastring).The functionthenmustreturnabooleanwiththeresultofthetest. 4.CallthefunctionevaluateBookfrommain,firstwiththeEnglishversionpg1228.txt andthenwiththeFrenchversionpg14158.txtsothatwecancontrasttheresultsfor eachlanguageonthescreen. YoumustuseonlytheC++instructionsthatwehavecoveredsofarinclass. Notes: - Theprogramthatyouturninmustbeyouroriginalandindividualwork.While youareallowedtodiscusstheprogramassignmentsingeneraltermswithothers, youarenotallowedtosharedetailsoftheactualsolution(s)orprogramcode withanybodyexcepttheinstructor. - Turninginacopyofsomeoneelse'sprogram,evenacopywithextensivechanges madetoit,orreceivinganyunauthorizedassistanceisaveryseriousoffenseinthis course. - Asneeded,youcanbeaskedtoexplainyoursolutioninpersonanytimethroughout thesemester. - Anautomatedplagiarismcheckermayscanprogramsatanytimeduringthe semester.Thesechecksmayincludeallassignments,quizzesandexams. - Onlysubmityoursourcecode(.cpp).Thismustbedoneonorbeforetheduedate throughBlackboard.Nolatesubmissions.Blackboardwillautomaticallyclosethe submissionpagerightafterthedeadline. - Yourprogrammustincludecommentsexplainingyourstepsandmustbeproperly formatted(seeProgram_Style_Guidelines.pdfinBlackboard). - Insertthefollowingblockatthetopofyourfilewithyourinformation: /∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗ ∗ELET2300
∗ProgrammingAssignment
∗ *Compilername ∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗/