帮忙翻译下java作业

来源:百度知道 编辑:UC知道 时间:2024/09/21 22:05:08
Count the letters in a file
Count the letters in a file of text: e.g. that there are 34 'e', 76 ' ', and so on. Write the complete table out to a file.
The file name should be an argument to the main constructor.
Marks: Up to 30% may be attracted by completing this section.

Write HTML
Write the letter frequency data to an HTML page. You can find the header and footer elements of a web page by using the view source menu item in a browser.
Add a table showing the letters in order of frequency - the most commmon letters first.
Marks: Up to 60% may be attracted by completing this and the previous section.

Count words
In the same text, count the number of words of each length.
A word is a sequence of alphabetic characters
e.g. brown Alphabet
but not lt55 (=lt) a-lists(= a and lists) Write the word data to your HTML file.
Add a report of the average length of a word.
Marks: Up to 9

第一题:统计一个文件里面字母的个数。
统计一个文本文件里面字母的个数。例如:有34个e,76个“空格”等等。用一个完整的表来显示这些信息,并将这个表写到一个文件里。
文件名是主构造器的一个参数。
分数:根据完成情况最高给到30%。

第二题:做HTML
往html页面里写入字母频率数据。你能用浏览器的查看源文件菜单获取web页面标签的首尾元素。
添加一个表去显示字母出现的频率。最常见的排第一位。
分数:根据完成度和先前的题目最高给到60%

第三题:统计单词数量
同样的文件,统计每种长度单词的数量
单词按字母顺序表排列
例如:brown
“but not lt55 (=lt) a-lists(= a and lists)”这个我不懂
把统计的数据写入一个html页面。
并报告下平均的单词长度。
分数:根据完成度和先前的题目最高给到90%

第四题:找出常用的单词
找到文本中最常用的前20个单词。写一个报告在html页面中。
分数:根据完成度和先前的题目最高给到100%

楼主这个是不是GOOGLE,还是baidu的笔试题?

计算一个文件中的字母
计算一个文本文件中的字母:例如:有34个'电子' , 76 ' ' ,等等。写完整的表列到一个文件。
档案名称应该是一个争论的主要构造。
标记:高达30 % ,可能会吸引完成此节。

写的HTML
写这封信的频率数据,以HTML网页。你可以找到页眉和页脚内容的网页,利用查看源文件菜单项在浏览器中。
添加一个表显示的字母顺序频率-最c ommmon信第一。
标记:高达60 %可能会吸引完成,这和前一节。

字数
在相同的文字,计数的数目的话,每个长度。
总之是一个序列的字母字符
例如:布朗字母
但不lt55 ( =审裁处)名单( = 1 ,并列出)收件Word资料到您的HTML文件。