BOOP Micro Project Report Format
BOOP Micro Project Report Format
On
KBC Game
Group Members
Sr. No. Enrollment Number Name
1 236020307078 KALANI YUVRAJ H.
2 236020307048 FATANIYA SMIT H.
3 236020307047 DUDHREJIYA YASH P.
4 236020307030 CHAVDA NAIMISH
Index
Sr. No. Topic Name
1 Abstract
3 Code
4 Output Screenshots
Abstract
KBC is an Indian television game show based on the British program "Who Wants to Be a
Millionaire?" Contestants answer a series of multiple-choice questions, each with increasing
difficulty and prize money. They have the option to use lifelines for help. The ultimate goal is to
win the top cash prize, which is usually a large sum of money. The show is hosted by a
prominent Bollywood actor, adding to its popularity and appeal.
class KBC{
string name;
int enrolno;
string department;
public:
void getdata()
cin>>this->name;
cin>>this->enrolno;
cin>>this->department;
this->name=name;
this->enrolno=enrolno;
this->department=department;
void display(){
cout<<"\t\t\t\t\t\t WELCOME KBC\n";
cout<<"student name:\n"<<name;
cout<<"student department\n"<<department;
};
public:
void Q1();
void Q2();
void Q3();
};
public:
void Q4();
void Q5();
void Q6();
void Q9();
};
public:
void Q7();
void Q8();
};
int main(){
Religious r;
Programming p;
Sports s;
r.getdata();
r.display();
r.Q1();
r.Q2();
r.Q3();
s.Q4();
s.Q5();
s.Q6();
p.Q7();
p.Q8();
p.Q9();
return 0;
cout << "1. Which god is worshipped first according to Hindu Traditions?\n";
ans1 = tolower(ans1);
switch (ans1) {
case 'a':
point++;
break;
case 'e':
cout << "1. Which god is worshipped first according to Hindu Traditions?\n";
ans1 = tolower(a1);
if (ans1 == 'a') {
else {
break;
case 'f':
cout << "1. Which god is worshipped first according to Hindu Traditions?\n";
ans1 = tolower(a1);
if (ans1 == 'a') {
point++;
else {
break;
default:
break;
}}
void Religious::Q2(){
ans2 = tolower(ans2);
switch (ans2) {
case 'c':
break;
case 'e':
ans2 = tolower(a2);
if (ans2 == 'c') {
point++;
else {
break;
case 'f':
ans2 = tolower(a2);
if (ans2 == 'c') {
point++;
else {
break;
default:
break;
}}
cout << "3. Who is the goddess of speech, wisdom and learning? \n";
ans3 = tolower(ans3);
switch (ans3) {
case 'b':
point++;
break;
case 'e':
cout << "3. Who is the goddess of speech, wisdom and learning?\n";
ans3 = tolower(a3);
if (ans3 == 'b') {
else {
break;
case 'f':
cout << "3. Who is the goddess of speech, wisdom and learning?\n";
ans3 = tolower(a3);
if (ans3 == 'b') {
point++;
else {
break;
default:
break;
}}
void Sports::Q4(){
ans4 = tolower(ans4);
switch (ans4) {
case 'b':
cout << "Your answer is correct\n";
point++;
break;
case 'e':
ans4 = tolower(a4);
if (ans4 == 'b') {
point++;
else {
break;
case 'f':
ans4 = tolower(a4);
if (ans4 == 'b') {
point++;
else {
break;
default:
break;
}}
void Sports::Q5(){
cout << "5. howmany players are there in a cricket team? \n";
ans5 = tolower(ans5);
switch (ans5) {
case 'd':
point++;
break;
case 'e':
cout << "5. howmany players are there in a cricket team? \n";
ans5 = tolower(a5);
if (ans5 == 'd') {
else {
break;
case 'f':
cout << "5. howmany players are there in a cricket team? \n";
ans5 = tolower(a5);
if (ans5 == 'd') {
point++;
else {
break;
default:
break;
}}
void Sports::Q6(){
cout << "6. What is the most popular winter sport in the world?\n";
ans6 = tolower(ans6);
switch (ans6) {
case 'd':
break;
case 'e':
cout << "6. What is the most popular winter sport in the world?\n";
ans6 = tolower(a6);
if (ans6 == 'd') {
point++;
else {
break;
case 'f':
cout << "6. What is the most popular winter sport in the world?\n";
ans6 = tolower(a6);
if (ans6== 'd') {
point++;
else {
break;
default:
break;
}}
void Programming::Q7(){
ans7 = tolower(ans7);
switch (ans7) {
case 'd':
point++;
break;
case 'e':
ans7 = tolower(a7);
if (ans7 == 'd') {
point++;
}
else {
break;
case 'f':
ans7 = tolower(a7);
if (ans7== 'd') {
point++;
else {
}
break;
default:
break;
}}
void Programming::Q8(){
ans8 = tolower(ans8);
switch (ans8) {
case 'c':
point++;
break;
case 'e':
ans8 = tolower(a8);
if (ans8 == 'c') {
point++;
else {
break;
case 'f':
if (ans8== 'c') {
point++;
else {
break;
default:
break;
}}
void Sports::Q9(){
ans9 = tolower(ans9);
switch (ans9) {
case 'c':
point++;
break;
case 'e':
ans9 = tolower(a9);
if (ans9 == 'c') {
point++;
else {
break;
case 'f':
ans9 = tolower(a9);
if (ans9== 'c') {
point++;
else {
break;
default:
cout << "Your answer is wrong\n";
break;
}
Output Screenshots