首页 > > 详细

CIS129编程辅导 、讲解 C++程序设计

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 – complete 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
Bollar 2 56
...

The first line indicates that CTS received 34 votes from region 2.
The election committee wants to output the number of votes each idol received in each
region, the total votes for each idol, the winner, and the total number of votes polled.
Example
----------“My favourite idol” Election Results----------
Vote
Idol Name
--------------
Region 1
--------------
Region 2
--------------
Region 3
--------------
Region 4
--------------
Total
--------
Winner: , Votes Received:
Total votes polled:
Question 3
Auto vending machine
Write an auto vending machine program that consist of the following features:
Show the customer the different products sold by the machine.
The customer can buy a product if it is available; otherwise, it is out of stock. The
machine should decrease the stock quantity of each product with every purchase.
The customer can buy a product if the deposited amount is at least equal to the cost of
the product. If the customer deposits more than the cost of the product, the machine
should return the change. If the customer deposits less than the cost of the product, the
machine should inform the user of the remaining amount required.
Example
*** Cold Drink Vending Machine ***
To select an item, enter
1 for Coke
2 for Grren Tea
3 for Coffee
4 for Mineral Water
9 to exit
What would you like to buy?
Please deposit dollars:
Collect your product at the bottom and enjoy. Please take back dollars.
or
The amount is not enough. Please deposit dollars.
or
Sorry, this product is sold out.
Rubrics
Items Poor
(0 – 40%)
Acceptable
(40 – 60%)
Good
(60 – 80%)
Excellent
(80 – 100%)
Project
Implementation
(30%)
The program
implementation
is usually not
appropriate.
Some of the
program
implementation
is appropriate.
The program
implementation
is generally
appropriate.
The overall
program
implementation
is appropriate.
Project Report
(25%)
A report
without
structure;
Just said
what the
students
want to say
without any
logic of
contents.
A below average
structured
report;
Poor
logics of flow of
contents.
A structured
report
with organized
points and
areas of
content;
Show
appropriate
logics
of flow of
contents
Very good
structured
report with well
organize points
and areas of
content;
Logical
flow of
contents
included
Project
Presentation (25%)
Presenters do
not have an
understanding
of the project
Presenters do
not have a firm
understanding
of the project
Presenters
mostly
demonstrate an
understanding
of the project
Presenters
demonstrate a
clear
understanding
of the project
Project Innovation
(20%)
Incomplete
project without
much
innovation
A complete
project without
much
innovation
A good project
with certain
level of
innovation
An excellent
project with
much
innovation


联系我们
  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp
热点标签

联系我们 - QQ: 99515681 微信:codinghelp
程序辅导网!