联系方式

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

您当前位置:首页 >> C/C++编程C/C++编程

日期:2018-06-13 03:37


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


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

python代写
微信客服:codinghelp