XJTLU Entrepreneur College (Taicang) Cover Sheet
Module code and Title DTS102TC Programming with C++/R
School Title School of Artificial Intelligence and Advanced Computing
Assignment Title Coursework 1 (CW 1)
Submission Deadline 5 pm China time (UTC+8 Beijing) on Fri. 15
th Oct. 2021
Final Word Count NA
If you agree to let the university use your work anonymously for teaching
and learning purposes, please type “yes” here. I certify that I have read and understood the University’s Policy for dealing with
Plagiarism, Collusion and the Fabrication of Data (available on Learning Mall Online). With reference to this policy I certify that: My work does not contain any instances of plagiarism and/or collusion. My work does not contain any fabricated data. By uploading my assignment onto Learning Mall Online, I formally declare that all of the
above information is true to the best of my knowledge and belief. Scoring – For Tutor Use
Student ID
Stage of Marking Marker
Code
Learning Outcomes Achieved (F/P/M/D)
(please modify as appropriate)
Final
Score
A B C
1
st Marker – red
pen
Moderation
– green pen
IM
Initials
The original mark has been accepted by the moderator
(please circle as appropriate):
Y / N
Data entry and score calculation have been checked by
another tutor (please circle):
Y
2
2
nd Marker if
needed – green
pen
For Academic Office Use Possible Academic Infringement (please tick as appropriate)
Date
Received
Days
late
Late
Penalty
☐ Category A
Total Academic Infringement Penalty
(A,B, C, D, E, Please modify where
☐ C necessary) _____________________ ategory B
☐ Category C
☐ Category D
☐ Category E
Students
(Please modify where necessary)
The assignment must be typed in an MS Word and converted to a PDF document. The document
must be submitted via Learning Mall Online to the correct drop box. Only electronic submission
is accepted and no hard copy submission. All students must download their file and check that it is viewable after submission. Documents
may become corrupted during the uploading process (e.g. due to slow internet connections). However, students themselves are responsible for submitting a functional and correct file for
assessments.
3
DTS102TC Progr amming with C++/R
Coursework 1 (Group Assessment)
Due: 5:00 pm China time (UTC+8 Beijing) on Friday Oct. 15th , 2021
Weight: 50%
Maximum scor e: 100 marks (60 group marks + 40 individual marks)
Groupings: Each group consists of 4-5 students. The detailed grouping table is published in
the group assessment section. Assessed learning outcomes:
A. Demonstr ate knowledge and understanding of basic principles of C++ progr amming
language. B. Demonstr ate knowledge and understanding of basic softwar e development process. C. Develop softwar e development skills covering progr am design, coding, testing, debugging, and executing. D. Demonstr ate understanding of the principles of object-oriented progr amming. Overview
The purpose of this task is to gain experience in C++ programming and develop software
development skills. You are expected to write a C++ program to input a paragraph of English
text on program console and to sort the frequency of words in this text. Task
Word frequency analysis is a fundamental operation in natural language processing. You need to
split the words in the paragraph and calculate the frequency of each word. To determine the
importance of a word more accurately, stop words need to be used to get rid of words that have
no specific meaning. A stop word is a commonly used word (such as "the") that a search engine
has been programmed to ignore, both when indexing entries for searching and when retrieving
4
them as the result of a search query. The importance of a word can be listed by the frequency of
the word. 1 Progr am Design (30 group marks)
Read the requirements of the project carefully, design the data structure and algorithm
of this program. a) You should use UML tools for data structure design. The data structure design covers:
i) the storage structure of the paragraph. (5 marks)
ii) the storage structure of single word and word frequency. (5 marks)
b) You should use flowcharts tools for algorithm design. The algorithm design covers:
i) the word split algorithm. (5 marks)
ii) the stop word algorithm. (5 marks)
iii) the word frequency calculation method. (5 marks)
iv) the word frequency sorting algorithm with descending ordering. (5 marks)
2 Program Implementation (30 group marks)
Complete the program implementation using C++ language based on the program design. Use
the and given below in this task to test your program on program console. This task covers:
i) implementation of word split algorithm. (5 marks)
ii) implementation of stop word algorithm. (5 marks)
iii) implementation of word frequency calculation method. (5 marks)
iv) implementation of word frequency sorting algorithm. (5 marks)
v) code quality covering naming rules of variables and comments of functions. (5 marks)
vi) object-oriented program development covering object definition and object encapsulation. (5 marks)
After a decade-long exploration, XJTLU has formulated a preliminary yet successful model for
cultivating international specialised talents. As a pioneer in the rethinking and reshaping of
education, the University proposed Syntegrative Education (SE) in 2016 to respond to the
5
challenges brought about by AI and robotics in the innovation-driven era. Based on an existing
specialised talent cultivating model, SE integrates specialised, industrial and management
programmes to deliver international industry experts, with the ability to lead future industry
development. Those leaders are highly versatile with the ability to drive the industries of the
future. They will be well-rounded yet specialised, know their industries thoroughly, and be able
to mobilise resources and lead people.
{”,”, ”.”, ”the”, ”a”, ”and”, ”of”, ”will”, ”(”, ”)”, ”to”, ”be”, ”in”}