Page 489 - C++
P. 489
KBC
A project to maintain questions and to conduct quiz contest.
struct date
{
int dd,mm,yy;
};
long int
money[]={1000,2000,5000,10000,100000,200000,500000,1000000,2500000,5000000,10000000};
class Questions
{
int Question_no;
char topic[20],Question[80],option1[30],option2[30],option3[30],option4[30];
int answer;
public:
void QGetdata();
void Qdisplaydata();
};
class Participant
{
int no;
char P_name[30],P_address[30],pincode[10],Phone[10],Mobile[15],P_occupation[30];
float Amount_earned;
date P_date;
public:
void PGetdata();
void PDisplaydate();
char *Return_P_name{ return P_name; }
void Update_Amount(float a
{
Amount_earned=a;
}
};
MAIN MENU
1. Question Management
a. Add a Question
b. Delete a Question
c. Modify a Question
d. exit
2. Quiz
3. Report
a. Participant List
b. Highest Score
c. Exit
4. Exit