合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

        CS101 編程代寫、代做 java程序語(yǔ)言

        時(shí)間:2024-03-16  來(lái)源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)



        Assignment 04: Text Analysis
        CS101 - Intro To Computer Science Fall 2023
        In this assignment, you will implement a text analysis tool that counts the number of verbal ticks. In contrast to previous assignments, you must implement certain tasks using different methods.
        Prerequisites:
        • Methods • Arrays
        The files for this assignment are in a zip file called 04_text_analysis.zip. There are four groups of files in the folder
        • TextAnalysis.java: the base implementation of the assignment - includes comments with the functions you need to implement.
        • TextAnalysisTest.java: unit tests - make sure you pass these unit tests before submitting the assignment.
        • .jar files in the lib folder: libraries to enable the use of the unit tests.
        • trump_speech_010621.txt: An example text file to run your main function on.
        1. Project Setup
        The zip file contains a folder called 04_text_analysis, which in turn contains a VS Code project. Extract the folder from the zip file and open it with VS Code to begin imple- menting and running your assignment. The folder contains the skeleton code for your sub- mission, as well as further instructions on the various methods you need to implement, in src/edu/nyu/assignment4/TextAnalysis.java.
        Note that this skeleton code already contains a Scanner called scanner. Use this one in all the methods.
        1

        2. Text Analysis
        The program must be able to open any text file specified by the user and analyze the frequency of verbal tics in the text. Since there are many different kinds of verbal tics (such as "like", "uh", "um", etc) the program must ask the user what tics to look for. A user can enter multiple tics, separated by commas. Any spaces entered by the user before or after each tic must be
        ignored. You can assume that all tics are single words.
        We will do this task by implementing a variety of small methods to accomplish this larger task. Every method you need to implement is described in TextAnalysis.java. The @param and @return statements in the comments indicate what the expected parameters and return type should be. If you correctly implement these methods your code should "pass" the unit tests in src/edu/nyu/assignment4/tests/TextAnalysisTest.java.
        A description of how to check if your code passes unit tests is later in the document.
        After the program is fully implemented, it should allow the user to submit a text file and a sequence of tics separated by commas and it should return the following statistics:
        • the total number of tics found in the text
        • the density of tics (proportion of all words in the text that are tics)
        • the frequency of each of the verbal tics
        • the percentage that each tic represents out of all the total number of tics
        This example shows suggested input/output of such a program, using a file trump_speech_010621.txt that is contained in the assignment zip file.
        What file would you like to open? trump_speech_010621.txt
        What words would you like to look for? uh,like, um,so
        ............................... Analyzing
        Total number of tics: 31 Density of tics: 0.01
        text .................................
        ...............................Tic breakdown..................................
        uh / 0 like / 17 um / 0 so / 14
        / 0% of all tics / 55% of all tics / 0% of all tics / 45% of all tics
        Page 2

        3. Unit Tests
        This assignment includes unit tests to make sure that your code conforms to our expected set of methods. Unit tests are used for a variety of reasons, but two key reasons are what we are doing here, to define how code should be invoked, and also to make sure that code continues to perform consistently over time.
        The unit tests will only build and run AFTER you have defined the various methods required for this assignment. Unit tests can be run by following the instructions in Figure 1. Note that these unit tests are VERY similar to how your assignments are graded - the autograder we use is implemented by running similar unit tests and giving marks if you pass them.
        Figure 1: The red square indicates the Test tab and the green square indicates how to run or debug the tests. If you highlight the individual you should see play/debug buttons appear next to them. If you press those buttons you will run just a single unit test.
        4. Debugging Your Code
        Debugging is an important part of coding. In this assignment, each function has some corner cases, make sure you understand what’s going on and fix your code. You can simply click the button with the bug symbol to debug the code. Remember to set a checkpoint before you run your code!
        Here is a summary of a few things you need to care about. For the corner cases. Please read the comments carefully to find more details.
        • Always check if the input is null if it is possible. Do not trust users.
        • Users’ input could contain repeated tokens, ignore the repeated ones.
        • Users’ input could have no token, let them try again until you get valid input.
        請(qǐng)加QQ:99515681  郵箱:99515681@qq.com   WX:codehelp 

        掃一掃在手機(jī)打開(kāi)當(dāng)前頁(yè)
      1. 上一篇:代寫CSEN 331、代做 C++程序語(yǔ)言
      2. 下一篇:菲律賓工作簽證辦理流程(9G工簽辦理的材料解答)
      3. 無(wú)相關(guān)信息
        合肥生活資訊

        合肥圖文信息
        出評(píng) 開(kāi)團(tuán)工具
        出評(píng) 開(kāi)團(tuán)工具
        挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
        挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
        戴納斯帝壁掛爐全國(guó)售后服務(wù)電話24小時(shí)官網(wǎng)400(全國(guó)服務(wù)熱線)
        戴納斯帝壁掛爐全國(guó)售后服務(wù)電話24小時(shí)官網(wǎng)
        菲斯曼壁掛爐全國(guó)統(tǒng)一400售后維修服務(wù)電話24小時(shí)服務(wù)熱線
        菲斯曼壁掛爐全國(guó)統(tǒng)一400售后維修服務(wù)電話2
        美的熱水器售后服務(wù)技術(shù)咨詢電話全國(guó)24小時(shí)客服熱線
        美的熱水器售后服務(wù)技術(shù)咨詢電話全國(guó)24小時(shí)
        海信羅馬假日洗衣機(jī)亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
        海信羅馬假日洗衣機(jī)亮相AWE 復(fù)古美學(xué)與現(xiàn)代
        合肥機(jī)場(chǎng)巴士4號(hào)線
        合肥機(jī)場(chǎng)巴士4號(hào)線
        合肥機(jī)場(chǎng)巴士3號(hào)線
        合肥機(jī)場(chǎng)巴士3號(hào)線
      4. 上海廠房出租 短信驗(yàn)證碼 酒店vi設(shè)計(jì)

        主站蜘蛛池模板: 国产成人精品无码一区二区三区| 国产91精品一区二区麻豆网站| 无码国产精品一区二区高潮| 国产伦精品一区二区三区女| 97久久精品一区二区三区| 国产精品无码一区二区三区毛片| 免费一区二区视频| 国产精品日本一区二区不卡视频| 无码av免费一区二区三区| 国产一区二区三区露脸| 国产主播在线一区| 精品视频一区二区三区在线观看| 国精产品一区一区三区MBA下载| 国产综合一区二区在线观看| 中日韩一区二区三区| 久久无码人妻精品一区二区三区| 麻豆高清免费国产一区| 美女一区二区三区| 国产一区三区二区中文在线| 精品天海翼一区二区| 亚洲一区二区三区免费观看| 国产丝袜美女一区二区三区| 无码AⅤ精品一区二区三区| 国产在线视频一区二区三区| 69久久精品无码一区二区| 亚洲国产AV无码一区二区三区| 国偷自产一区二区免费视频| 日韩精品电影一区| 国产福利电影一区二区三区,亚洲国模精品一区 | 日本丰满少妇一区二区三区| 2018高清国产一区二区三区| 日韩亚洲AV无码一区二区不卡 | 成人区人妻精品一区二区不卡| 国产精品女同一区二区| 精品国产乱子伦一区二区三区| 天堂资源中文最新版在线一区 | 成人一区专区在线观看| 亚洲综合一区二区精品导航| 亚洲国产一区二区a毛片| 中文字幕无码不卡一区二区三区| 国产在线一区观看|