辅导quiz program C++、辅导讲解C++、辅导C++
- 首页 >> C/C++编程Final Project
Let’s develop a quiz program for our teacher
Specification
You would develop a computer-graded quiz
program.
We will try to make this as general as we
can because often quizzes consist of
different kinds of questions
Fill-in-the-blank
Choice(single or multiple)
Numeric
(we’ll allow approximate answers to be OK)
Free response
Design Your class Hierarchy
Here is the UML diagram that resulted
from our analysis:
What you have already
Download the final project
package
The package consist of two
sample classes Question
and ChoiceQuesiton
What you need to do
1. Redesign the Question class make it
abstract to work as the base class for
other classes.
2. Work out at least derived two classes
3. Redesign the Main.cpp to demonstrate
your program.
4. Make your program as user-friendly as
you can.
What I will check in your project
Yes, it is open project. You can choose anything that you want to do.
The following are the key points that earn you credits.
Class composition
A “has-a” relationship between classes.
Inheritance
A “is-a” relationship between classes.
Class specialization and expansion
Polymorphism and virtual functions
An abstract class containing at least one pure virtual function.
Virtual function implementation in sub classes.
A STL Container
Most likely, you would choose vector.
Turn in your work
Zip your project
and submit it to the
Final Project
Folder
Due Date:
June 13, 2018