From 427f17d7178e6a9d6654ce4dd17b14ed91614bc3 Mon Sep 17 00:00:00 2001 From: Sheqi Date: Mon, 11 Jul 2016 09:25:55 -0400 Subject: [PATCH 1/9] final project proposal --- Final Project Proposal | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Final Project Proposal diff --git a/Final Project Proposal b/Final Project Proposal new file mode 100644 index 0000000..04485c2 --- /dev/null +++ b/Final Project Proposal @@ -0,0 +1,33 @@ +Proposal of Final Project Sheqi + +My plan is to write a program that can calculate the frequency of the words appearing in a document. + +I want to do this because I think it's useful, and I believe the most important characteristic of computer programming is useful. In addition, I can almost handle it with the things I have learend in the summer program. + +Steps: +1. Open document 1 and read it, and judge if it opens successfully at the same time. +2. If open successfully, as well as not reaching the end of the document, then calculate the frequency of a word. +3. Repeat step 2 till the end of the document. +4. Close document 1. +5. Open document 2 and try to record data on it, and judge if it opens successfully at the same time. +6. If open successfully, then record all the words and their frequencies in this document. +7. Close document 2. +8. Make all words fit in a static order (maybe from "a" to "z"). +9. Open document 3 and try to record data in it, and judge if it opens successfully at the same time. +10. If open successfully, then record all the words and frequencies in the order in document 3. +11. Close document 3. + +How to use loops: +During the process calculating the frequency of one word. +How to use advanced datatypes: +Use structures to combine the words and their frequencies together. +How to use functions: +.... +How to use arrays: +In the process of calculating the frequency of one word. +Arrays: +In the structure. + +External Library: +I don't understand what is an external library, but I can find external help from my mom. She is a professor in Tsinghua University teaching computer linguistics. + From c4f1dbe98a993863547c238a7d24ff40a2770e46 Mon Sep 17 00:00:00 2001 From: Sheqi Date: Mon, 11 Jul 2016 10:33:22 -0400 Subject: [PATCH 2/9] final project proposal --- Final Project Proposal | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Final Project Proposal b/Final Project Proposal index 04485c2..41e1798 100644 --- a/Final Project Proposal +++ b/Final Project Proposal @@ -29,5 +29,8 @@ Arrays: In the structure. External Library: -I don't understand what is an external library, but I can find external help from my mom. She is a professor in Tsinghua University teaching computer linguistics. - +stdio.h +string.h +assert.h +ctype.h +math.h (maybe) From a108fd5b86b93305b61df02f02405b3e289943c1 Mon Sep 17 00:00:00 2001 From: Sheqi Date: Thu, 14 Jul 2016 16:00:34 -0400 Subject: [PATCH 3/9] code --- finalProject.c | 126 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 finalProject.c diff --git a/finalProject.c b/finalProject.c new file mode 100644 index 0000000..aa7f5a5 --- /dev/null +++ b/finalProject.c @@ -0,0 +1,126 @@ +#include +#include +#include + +struct WORD +{ + char name[20]; + int count; +}; + +int countWordFrequency(struct WORD word[5000]) +{ + int i,j,last; + int present=0; + int wordnum=0; + char c; + char tempword[20]; + char filename[30]; + FILE *fp; + + //type in the name of the document and open it + puts("Type in the name of the file:"); + scanf("%s",filename); + if((fp=fopen(filename,"r"))==NULL) + { + printf("We can't open the file.\n"); + exit(0); + } + + while(!feof(fp)) + { + c=getc(fp); + last=present; + if((c!=' ')&&(!feof(fp))&&(c!='\n')&&(c!='\r')) + { + present=1; + if(last==0) + { + i=0; + tempword[i]=c; + i++; + }else{ + tempword[i]=c; + i++; + } + }else{ + present=0; + if(last==1) + { + tempword[i]='\0'; + for(j=0;j Date: Thu, 14 Jul 2016 16:01:12 -0400 Subject: [PATCH 4/9] executing --- final | Bin 0 -> 13336 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100755 final diff --git a/final b/final new file mode 100755 index 0000000000000000000000000000000000000000..6de203c271a0f6904830eafb518a8e83d54f0673 GIT binary patch literal 13336 zcmeHOeQ;FO6~DWigaBa^FiHR|Zxq_7uqFr?pp~~t9=tFCQcToZ;IY|#OIDNJxce3p zN2ak0mTij0LOZn8mYMq5PG_*=D1SJRkd(ko$B7;Aqh+Sps*{LT94)0)*`9OXJ-ct; z?nY-i)4y^vyXT(YJ?GqW&pr3OclX_VPibD~bT}9lC%c^?*D_7!konEn-AgztusSxK z$!sCJmX!cf3?G@dAT?`5FALK|ON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+) create mode 100644 Instruction about how to run it diff --git a/Instruction about how to run it b/Instruction about how to run it new file mode 100644 index 0000000..c8fb667 --- /dev/null +++ b/Instruction about how to run it @@ -0,0 +1,12 @@ +Instruction of running my final project. + +The main purpose of my code is to calculate the frequency of words appearing in a document the user selected, and print these frequencies into another file the user selected. Finally, sort the frequency with the descending order, and print them into the third file the user selected. + +Here is the instruction: +1. When you see "Type in the name of the file:", please type in the name of a file that you want to calculate the words and their frequencies. You can type anything you like in the file, whatever a word, a sentence, a report, or a news. As soon as you finished type the name of the file, please push "enter" botton. +2. When you see "Input the unsorted file names for writing:", please enter the name of the file that you want to save all your datas about the word frequency without ordering in. This file must exist before you type in its name. It's better to have an empty file. As soon as you finished typing the name of the unsorting file, please push "enter" botton. +3. When you see "Input the sorted file names for writing:", please enter the name of the file that you want to save all you sorted datas about the word frequency. This file must exist before you type in its name. It's better to have an empty file. As soon as you finished typing the name of the soring file, please push "enter" botton. +4.After these three steps, the program stop running. At this time, you can go back to your unsorting file and sorting file, and the result will just lie in these two files. + +IMPORTANT REMINDER: +Since I have just set the program for 5000 words at max, if you are going to run the program with files that have far more than 5000 kinds of words, please go to my code, and reset a range to make sure that the program will run. From b7ba59865dd0f652df4ff4099d319f6027723f04 Mon Sep 17 00:00:00 2001 From: Sheqi Date: Fri, 15 Jul 2016 11:25:54 -0400 Subject: [PATCH 6/9] exampleNews --- exampleNews.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 exampleNews.txt diff --git a/exampleNews.txt b/exampleNews.txt new file mode 100644 index 0000000..145e3ee --- /dev/null +++ b/exampleNews.txt @@ -0,0 +1,23 @@ +On the grounds of the Old State Capitol here, where nearly 160 years ago, Abraham Lincoln held forth on “a house divided,” Hillary Clinton on Wednesday lamented the Party of Lincoln’s transition to the Party of Trump, casting the present moment as an indelible stain on Republican history. + +Yet even as she savaged Donald J. Trump as an existential threat to American democracy, a week before Republicans plan to nominate him for president in Cleveland, Mrs. Clinton set off on a delicate balancing act of her own. + +She waded with care into the thickets of national reckonings over police violence and violence against the police, hoping to position herself as an unlikely agent of harmony. + +And in an uncharacteristic admission, Mrs. Clinton assumed responsibility for at least a small measure of the fractiousness in the national discourse. + +“I cannot stand here and claim that my words and actions haven’t sometimes fueled the partisanship that often stands in the way of our progress,” she told a small audience that crowded beneath a grand ceiling here. “So I recognize I have to do better, too.” + +Though Mrs. Clinton has for weeks stressed unity as the binding theme of her campaign — making speeches in front of “Stronger Together” signs — the staging on Wednesday was particularly unsubtle. + +She immediately invoked President Lincoln, quoting from his speech on June 16, 1858. + +She spoke slowly and sternly, as if narrating a documentary, railing against a litany of national hardships: gun violence, economic inequality, an overreliance on the police to remedy societal ills. + +She suggested reassuringly that America had overcome much more than its recent pain and political fury. + +“The challenges we face today do not approach those of Lincoln’s time. Not even close,” she said. “But recent events have left people across America asking hard questions about whether we are still a house divided.” + +For a candidate not known for soaring oratory, and often not especially comfortable pursuing it, the venue was something of a risky choice, inviting comparisons to some of the most stirring speakers in American history. Nearly a century and a half after Lincoln condemned slavery here, Senator Barack Obama stood before the Capitol in February 2007 to announce his bid for president. + +Mrs. Clinton’s aides had billed this speech as a major address, hoping to build on remarks last week before black clergy members in Philadelphia, when she urged white Americans to “do a better job of listening when African-Americans talk.” From 395755a627d3d0ff9d45d05bc6f0adede22e8557 Mon Sep 17 00:00:00 2001 From: Sheqi Date: Fri, 15 Jul 2016 11:26:37 -0400 Subject: [PATCH 7/9] exampleSorting --- exampleSorting.txt | 275 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 275 insertions(+) create mode 100644 exampleSorting.txt diff --git a/exampleSorting.txt b/exampleSorting.txt new file mode 100644 index 0000000..cb9828b --- /dev/null +++ b/exampleSorting.txt @@ -0,0 +1,275 @@ +The number of words are 274 +the,17 +of,15 +a,14 +to,10 +on,8 +in,8 +as,7 +and,7 +an,5 +for,5 +Clinton,4 +she,4 +Mrs.,4 +She,4 +that,4 +before,3 +national,3 +not,3 +house,2 +Wednesday,2 +Party,2 +Lincoln’s,2 +Capitol,2 +history.,2 +even,2 +American,2 +week,2 +her,2 +police,2 +violence,2 +here,,2 +against,2 +hoping,2 +small,2 +Lincoln,2 +often,2 +I,2 +have,2 +do,2 +—,2 +was,2 +his,2 +speech,2 +America,2 +had,2 +recent,2 +we,2 +when,2 +divided,”,1 +democracy,,1 +grounds,1 +Hillary,1 +held,1 +Republicans,1 +plan,1 +nominate,1 +him,1 +nearly,1 +president,1 +State,1 +Cleveland,,1 +ago,,1 +set,1 +off,1 +delicate,1 +balancing,1 +act,1 +transition,1 +own.,1 +Abraham,1 +waded,1 +with,1 +care,1 +into,1 +thickets,1 +forth,1 +reckonings,1 +over,1 +On,1 +Trump,,1 +casting,1 +present,1 +police,,1 +moment,1 +position,1 +herself,1 +unlikely,1 +agent,1 +harmony.,1 +And,1 +uncharacteristic,1 +admission,,1 +assumed,1 +responsibility,1 +at,1 +least,1 +160,1 +measure,1 +fractiousness,1 +discourse.,1 +“I,1 +cannot,1 +stand,1 +here,1 +claim,1 +where,1 +my,1 +words,1 +actions,1 +haven’t,1 +sometimes,1 +fueled,1 +partisanship,1 +indelible,1 +stands,1 +way,1 +our,1 +progress,”,1 +told,1 +audience,1 +crowded,1 +beneath,1 +grand,1 +ceiling,1 +here.,1 +“So,1 +stain,1 +recognize,1 +Republican,1 +“a,1 +better,,1 +too.”,1 +Though,1 +has,1 +weeks,1 +stressed,1 +unity,1 +binding,1 +theme,1 +campaign,1 +Yet,1 +making,1 +speeches,1 +front,1 +“Stronger,1 +Together”,1 +signs,1 +staging,1 +lamented,1 +particularly,1 +unsubtle.,1 +immediately,1 +invoked,1 +President,1 +Lincoln,,1 +quoting,1 +from,1 +years,1 +savaged,1 +June,1 +16,,1 +1858.,1 +spoke,1 +slowly,1 +sternly,,1 +if,1 +narrating,1 +documentary,,1 +railing,1 +litany,1 +hardships:,1 +gun,1 +violence,,1 +economic,1 +inequality,,1 +overreliance,1 +remedy,1 +societal,1 +ills.,1 +suggested,1 +reassuringly,1 +Donald,1 +J.,1 +overcome,1 +much,1 +more,1 +than,1 +its,1 +Trump,1 +pain,1 +political,1 +fury.,1 +“The,1 +challenges,1 +existential,1 +face,1 +today,1 +Old,1 +approach,1 +those,1 +time.,1 +Not,1 +close,”,1 +said.,1 +“But,1 +events,1 +left,1 +people,1 +across,1 +asking,1 +hard,1 +questions,1 +about,1 +whether,1 +are,1 +still,1 +divided.”,1 +For,1 +candidate,1 +known,1 +soaring,1 +oratory,,1 +especially,1 +comfortable,1 +pursuing,1 +it,,1 +venue,1 +something,1 +risky,1 +choice,,1 +inviting,1 +comparisons,1 +some,1 +most,1 +stirring,1 +speakers,1 +Nearly,1 +century,1 +half,1 +after,1 +condemned,1 +slavery,1 +Senator,1 +Barack,1 +Obama,1 +stood,1 +February,1 +2007,1 +announce,1 +bid,1 +president.,1 +Clinton’s,1 +aides,1 +billed,1 +this,1 +major,1 +address,,1 +build,1 +remarks,1 +last,1 +black,1 +clergy,1 +members,1 +Philadelphia,,1 +threat,1 +urged,1 +white,1 +Americans,1 +“do,1 +better,1 +job,1 +listening,1 +African-Americans,1 +talk.”,1 From e4ddb819076320d3fcea31f47a9595708abb6314 Mon Sep 17 00:00:00 2001 From: Sheqi Date: Fri, 15 Jul 2016 11:27:20 -0400 Subject: [PATCH 8/9] exampleUnsorting --- exampleUnsorting.txt | 275 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 275 insertions(+) create mode 100644 exampleUnsorting.txt diff --git a/exampleUnsorting.txt b/exampleUnsorting.txt new file mode 100644 index 0000000..4a5a635 --- /dev/null +++ b/exampleUnsorting.txt @@ -0,0 +1,275 @@ +The number of words are 274 +On,1 +the,17 +grounds,1 +of,15 +Old,1 +State,1 +Capitol,2 +here,,2 +where,1 +nearly,1 +160,1 +years,1 +ago,,1 +Abraham,1 +Lincoln,2 +held,1 +forth,1 +on,8 +“a,1 +house,2 +divided,”,1 +Hillary,1 +Clinton,4 +Wednesday,2 +lamented,1 +Party,2 +Lincoln’s,2 +transition,1 +to,10 +Trump,,1 +casting,1 +present,1 +moment,1 +as,7 +an,5 +indelible,1 +stain,1 +Republican,1 +history.,2 +Yet,1 +even,2 +she,4 +savaged,1 +Donald,1 +J.,1 +Trump,1 +existential,1 +threat,1 +American,2 +democracy,,1 +a,14 +week,2 +before,3 +Republicans,1 +plan,1 +nominate,1 +him,1 +for,5 +president,1 +in,8 +Cleveland,,1 +Mrs.,4 +set,1 +off,1 +delicate,1 +balancing,1 +act,1 +her,2 +own.,1 +She,4 +waded,1 +with,1 +care,1 +into,1 +thickets,1 +national,3 +reckonings,1 +over,1 +police,2 +violence,2 +and,7 +against,2 +police,,1 +hoping,2 +position,1 +herself,1 +unlikely,1 +agent,1 +harmony.,1 +And,1 +uncharacteristic,1 +admission,,1 +assumed,1 +responsibility,1 +at,1 +least,1 +small,2 +measure,1 +fractiousness,1 +discourse.,1 +“I,1 +cannot,1 +stand,1 +here,1 +claim,1 +that,4 +my,1 +words,1 +actions,1 +haven’t,1 +sometimes,1 +fueled,1 +partisanship,1 +often,2 +stands,1 +way,1 +our,1 +progress,”,1 +told,1 +audience,1 +crowded,1 +beneath,1 +grand,1 +ceiling,1 +here.,1 +“So,1 +I,2 +recognize,1 +have,2 +do,2 +better,,1 +too.”,1 +Though,1 +has,1 +weeks,1 +stressed,1 +unity,1 +binding,1 +theme,1 +campaign,1 +—,2 +making,1 +speeches,1 +front,1 +“Stronger,1 +Together”,1 +signs,1 +staging,1 +was,2 +particularly,1 +unsubtle.,1 +immediately,1 +invoked,1 +President,1 +Lincoln,,1 +quoting,1 +from,1 +his,2 +speech,2 +June,1 +16,,1 +1858.,1 +spoke,1 +slowly,1 +sternly,,1 +if,1 +narrating,1 +documentary,,1 +railing,1 +litany,1 +hardships:,1 +gun,1 +violence,,1 +economic,1 +inequality,,1 +overreliance,1 +remedy,1 +societal,1 +ills.,1 +suggested,1 +reassuringly,1 +America,2 +had,2 +overcome,1 +much,1 +more,1 +than,1 +its,1 +recent,2 +pain,1 +political,1 +fury.,1 +“The,1 +challenges,1 +we,2 +face,1 +today,1 +not,3 +approach,1 +those,1 +time.,1 +Not,1 +close,”,1 +said.,1 +“But,1 +events,1 +left,1 +people,1 +across,1 +asking,1 +hard,1 +questions,1 +about,1 +whether,1 +are,1 +still,1 +divided.”,1 +For,1 +candidate,1 +known,1 +soaring,1 +oratory,,1 +especially,1 +comfortable,1 +pursuing,1 +it,,1 +venue,1 +something,1 +risky,1 +choice,,1 +inviting,1 +comparisons,1 +some,1 +most,1 +stirring,1 +speakers,1 +Nearly,1 +century,1 +half,1 +after,1 +condemned,1 +slavery,1 +Senator,1 +Barack,1 +Obama,1 +stood,1 +February,1 +2007,1 +announce,1 +bid,1 +president.,1 +Clinton’s,1 +aides,1 +billed,1 +this,1 +major,1 +address,,1 +build,1 +remarks,1 +last,1 +black,1 +clergy,1 +members,1 +Philadelphia,,1 +when,2 +urged,1 +white,1 +Americans,1 +“do,1 +better,1 +job,1 +listening,1 +African-Americans,1 +talk.”,1 From be5ede1d4e6628ae5a69bd85aa732e863c0cc063 Mon Sep 17 00:00:00 2001 From: Sheqi Date: Fri, 15 Jul 2016 11:27:53 -0400 Subject: [PATCH 9/9] test folder --- test folder/EnglishSorted.txt | 32 ++++ test folder/EnglishUnsorted.txt | 32 ++++ test folder/Englishtest.txt | 4 + test folder/a.out | Bin 0 -> 13336 bytes test folder/sort.txt | 275 ++++++++++++++++++++++++++++++++ test folder/unsort.txt | 275 ++++++++++++++++++++++++++++++++ 6 files changed, 618 insertions(+) create mode 100644 test folder/EnglishSorted.txt create mode 100644 test folder/EnglishUnsorted.txt create mode 100644 test folder/Englishtest.txt create mode 100755 test folder/a.out create mode 100644 test folder/sort.txt create mode 100644 test folder/unsort.txt diff --git a/test folder/EnglishSorted.txt b/test folder/EnglishSorted.txt new file mode 100644 index 0000000..97099b5 --- /dev/null +++ b/test folder/EnglishSorted.txt @@ -0,0 +1,32 @@ +The number of words are 31 +to,2 +food,2 +of,2 +the,2 +Hello!,1 +introduce,1 +my,1 +best,1 +Today,1 +all,1 +I,1 +you.,1 +It's,1 +want,1 +dumplings.,1 +It,1 +comes,1 +from,1 +China,,1 +and,1 +it,1 +is,1 +a,1 +traditional,1 +in,1 +China,1 +with,1 +expectation,1 +family,1 +gathering,1 +together.,1 diff --git a/test folder/EnglishUnsorted.txt b/test folder/EnglishUnsorted.txt new file mode 100644 index 0000000..f26bb16 --- /dev/null +++ b/test folder/EnglishUnsorted.txt @@ -0,0 +1,32 @@ +The number of words are 31 +Hello!,1 +Today,1 +I,1 +want,1 +to,2 +introduce,1 +my,1 +best,1 +food,2 +all,1 +of,2 +you.,1 +It's,1 +the,2 +dumplings.,1 +It,1 +comes,1 +from,1 +China,,1 +and,1 +it,1 +is,1 +a,1 +traditional,1 +in,1 +China,1 +with,1 +expectation,1 +family,1 +gathering,1 +together.,1 diff --git a/test folder/Englishtest.txt b/test folder/Englishtest.txt new file mode 100644 index 0000000..b2a8ec9 --- /dev/null +++ b/test folder/Englishtest.txt @@ -0,0 +1,4 @@ +Hello! Today I want to introduce my best food to all of you. + +It's the dumplings. It comes from China, and it is a traditional food in China with the expectation of family gathering together. + diff --git a/test folder/a.out b/test folder/a.out new file mode 100755 index 0000000000000000000000000000000000000000..6de203c271a0f6904830eafb518a8e83d54f0673 GIT binary patch literal 13336 zcmeHOeQ;FO6~DWigaBa^FiHR|Zxq_7uqFr?pp~~t9=tFCQcToZ;IY|#OIDNJxce3p zN2ak0mTij0LOZn8mYMq5PG_*=D1SJRkd(ko$B7;Aqh+Sps*{LT94)0)*`9OXJ-ct; z?nY-i)4y^vyXT(YJ?GqW&pr3OclX_VPibD~bT}9lC%c^?*D_7!konEn-AgztusSxK z$!sCJmX!cf3?G@dAT?`5FALK|ONE>ZXc2tsoF-7`lzD~dwI&Qbn1wtl|G5S5>k8m#BcB}x^XbRwTghTZ)Zg99^q!Exf{|`L%rq?&i}+Wq(qevJ zILNx=Mhvi+;q%|8`8)2@g1%5E3+j;|3;H`FF`W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