联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp

您当前位置:首页 >> Java编程Java编程

日期:2020-04-01 10:21

COMP1039 – PGP - Java

Coursework 1 (10 marks)

The following files are all provided, they must be downloaded from moodle:

Comp1039_java.pdf // this file, with version control

String (Java Platform SE 8 ).pdf //java String api

Test.txt // file to be read in and analysed

Write java code that performs the following tasks:

1. Using the supplied text file ‘Test.txt’output to screen the case insensitive word that appears

most frequently and the number of occurrences of this word.

So if we used your code on “Drive Drive drive drive on the road road road” we would get the

word ‘drive’ and number ’4’ output to screen. Should it be a tie between two or more words,

the word that appears first should be output. [3 marks]

2. Counts and outputs to screen all the case sensitive words that appear only once.

So if we used your code on “Drive Drive drive drive on the road road road” we would get the

words ‘on the’ [3 marks]

Please note that I will be using a different Test.txt file but it will be called Test.txt and will be placed in

the same directory as your files. Full marks will be given if your code works, if it doesnt work correctly

marks may be given at the markers discretion for correct aspects of the code

If your code works for both tasks additional marks will be awarded for the following features:

a. Implement some form exception handling (comment where this occurs) [1 mark]

b. Implement some form of polymorphism (comment where this occurs) [1 mark]

c. Make use of at least one interface (comment where this occurs) [1 mark]

d. Make use of at least on inner class (comment where this occurs) [1 mark]

Submit all you files including AssessedCW1.java to Moodle as a .zip file. After unzipping this code it will

be tested by typing:

Javac AssessedCW1.java

Java AssessedCW1

Deadline is 4pm Friday the 3rd of April

Any Late Submission will receive 0 marks


版权所有:编程辅导网 2021 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。 站长地图

python代写
微信客服:codinghelp