CIS129 Advanced Computer Programming
Project
Guideline
You are required to use C++ to solve a real-life business problem by employing a logical
and systematic programming solution, and to present your findings in a structured
report.
You should use different techniques learnt from classes to create your project such as
data types, header, functions, reference, array, pointers, structure, etc.
Choose 1 question from 3 questions.
Submission
Deadline: 21 April 2025 (Mon)
No. of students: 1 – 3 students in each group
Please upload the following files to Moodle. Write the student name and ID on the files
clearly.
• Solution folder – includes all C++ source and header files.
• Project Report – comp代写CIS129 Advanced Computer Programminglete the “Project Report Form” in Moodle.
• Presentation Video – around 10 minutes presentation, please show your face in
the video
If your file is larger than 50MB, upload your file to OneDrive or GoogleDrive and copy
the share link to Moodle.
Each group need to submit once only.
If you used any generative AI (e.g. ChatGPT) in your project, please write the question
and the reply in the reference of the Project Report.
Mark Scheme
Program Design & Implementation (30%)
Project Report (25%)
Presentation and Demonstration (25%)
Innovation (20%)
Bonus marks (10%) will be given for additional features
Question 1
Line, word and letter count
Write a program that reads a text file, and outputs the number of lines, the number of
words, and the number of times each letter appears in the text.
Example
Input (Text file)
Today we live in an era where information is processed
almost at the speed of light. Through computers, the
technological revolution is drastically changing the way we
live and communicate with one another. Terms such as
the Internet, which was unfamiliar just a few years ago, are
very common today. With the help of computers you can send
letters to, and receive letters from, loved ones within
seconds. You no longer need to send a resume by mail to apply
for a job; in many cases you can simply submit your job
application via the Internet. You can watch how stocks perform
in real time, and instantly buy and sell them. Students
regularly surf the Internet and use computers to design
their classroom projects. They also use powerful word
processing software to complete their term papers. Many
people maintain and balance their checkbooks on computers.
Output
The number of lines = ??
The number of words = ??
The number of “A”= ??
The number of “B”= ??
The number of “C”= ??
The number of “D”= ??


The number of “Y”=
The number of “Z”=
Question 2
Voting Results
A media organization hold an election of “My favourite idol” during an award ceremony.
The media organization wants to computerize the voting. Please write a program to
analyze the data and report the winner.
The data is provided in a file VoteData.txt, each line consists of voting results in the
following form:
IdolName RegionNumber NumberOfVotesForTheIdol
That is, each line in the file VoteData.txt consists of the idol name, region number, and
the votes received by the idol in this region. There is one entry per line. For example, the
input file containing voting data looks like:
CTS 2 34
DKA84 1 56
WX:codinghelp


qpdvexoi
1 声望0 粉丝