0% found this document useful (0 votes)
30 views33 pages

BOOP Micro Project Report Format

The document is a micro project report on the KBC game, created by a group of Diploma in Computer Engineering students. It outlines the game's concept, which is based on the Indian television show 'Kaun Banega Crorepati', and includes functionalities, code, and sample questions from various categories. The project aims to simulate the quiz experience with lifelines and scoring based on correct answers.

Uploaded by

smitfataniya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views33 pages

BOOP Micro Project Report Format

The document is a micro project report on the KBC game, created by a group of Diploma in Computer Engineering students. It outlines the game's concept, which is based on the Indian television show 'Kaun Banega Crorepati', and includes functionalities, code, and sample questions from various categories. The project aims to simulate the quiz experience with lifelines and scoring based on correct answers.

Uploaded by

smitfataniya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 33

Micro Project Report

On

KBC Game

Branch Diploma in Computer Engineering


Semester 2nd
Subject Name Basic Object Oriented Programming
Subject Code 4320702

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

2 Introduction to Project Functionalities

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.

Introduction to Project Functionalities


In this project we made a program like KBC a television show. First we take name and
enrrollment number of each members and then we start the KBC game. In the game we ask
frequent questions like religious, sports, programming, history. If your answer is correct you will
get a point. Otherwise you will not get the point and the game continues to next question.
Code:-
#include<iostream>

using namespace std;

static in2t point=0;

class KBC{

string name;

int enrolno;

string department;

public:

void getdata()

cout<<"ENTER THE STUDENT NAME:";

cin>>this->name;

cout<<"ENTER THE ENROLMENT NO>:";

cin>>this->enrolno;

cout<<"ENTER THE DEPARTMENT";

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 enrolment no.\n"<<enrolno;

cout<<"student department\n"<<department;

};

class Religious: public KBC{

public:

void Q1();

void Q2();

void Q3();

};

class Sports: public KBC{

public:

void Q4();

void Q5();

void Q6();

void Q9();

};

class Programming: public KBC{

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;

void Religious:: Q1(){

char ans1, a1;

cout << "1. Which god is worshipped first according to Hindu Traditions?\n";

cout << "a. Ganesh\n";


cout << "b. Shiv\n";

cout << "c. Vishnu\n";

cout << "d. Brahma\n\n\n";

cout << "You can also use life line\n\n";

cout << "e. lifeline 50:50\n";

cout << "f. lifeline hint\n";

cin >> ans1;

ans1 = tolower(ans1);

switch (ans1) {

case 'a':

cout << "Your answer is correct\n";

point++;

break;

case 'e':

cout << "1. Which god is worshipped first according to Hindu Traditions?\n";

cout << " a. Ganesh\n";

cout << " b. Shiv\n";

cin >> a1;

ans1 = tolower(a1);

if (ans1 == 'a') {

cout << "Your answer is correct\n";


point++;

else {

cout << "Your answer is wrong\n";

cout << "Correct answer is A. Ganesh\n";

break;

case 'f':

cout << "This god is known as Ekdant.\n";

cout << "1. Which god is worshipped first according to Hindu Traditions?\n";

cout << "a. Ganesh\n";

cout << "b. Shiv\n";

cout << "c. Vishnu\n";

cout << "d. Brahma\n";

cin >> a1;

ans1 = tolower(a1);

if (ans1 == 'a') {

cout << "Your answer is correct\n";

point++;

else {

cout << "Your answer is wrong\n";

cout << "Correct answer is A. Ganesh\n";


}

break;

default:

cout << "Your answer is wrong\n";

cout << "Correct answer is A. Ganesh\n";

break;

}}

void Religious::Q2(){

char ans2, a2;

cout << "2. In Hindu mythology, who is the god of death?\n";

cout << "a. Indra\n";

cout << "b. Sarswati\n";

cout << "c. Yama\n";

cout << "d. Brahma\n\n\n";

cout << "You can also use life line\n\n";

cout << "e. lifeline 50:50\n";

cout << "f. lifeline hint\n";

cin >> ans2;

ans2 = tolower(ans2);

switch (ans2) {

case 'c':

cout << "Your answer is correct\n";


point++;

break;

case 'e':

cout << "2. In Hindu mythology, who is the god of death?\n";

cout << " a. Indra\n";

cout << " c. Yama\n";

cin >> a2;

ans2 = tolower(a2);

if (ans2 == 'c') {

cout << "Your answer is correct\n";

point++;

else {

cout << "Your answer is wrong\n";

cout << "Correct answer is A. Ganesh\n";

break;

case 'f':

cout << "this god have buffalo as vehicle.\n";

cout << "2. In Hindu mythology, who is the god of death?\n";

cout << "a. Indra\n";

cout << "b. Sarswati\n";

cout << "c. Yama\n";


cout << "d. Brahma\n";

cin >> a2;

ans2 = tolower(a2);

if (ans2 == 'c') {

cout << "Your answer is correct\n";

point++;

else {

cout << "Your answer is wrong\n";

cout << "Correct answer is c. Yama\n";

break;

default:

cout << "Your answer is wrong\n";

cout << "Correct answer is c. Yama\n";

break;

}}

void Religious:: Q3(){

char ans3, a3;

cout << "3. Who is the goddess of speech, wisdom and learning? \n";

cout << "a. Shasti\n";


cout << "b. Sarswati\n";

cout << "c. Satyanarayana\n";

cout << "d. savitar\n\n\n";

cout << "You can also use life line\n\n";

cout << "e. lifeline 50:50\n";

cout << "f. lifeline hint\n";

cin >> ans3;

ans3 = tolower(ans3);

switch (ans3) {

case 'b':

cout << "Your answer is correct\n";

point++;

break;

case 'e':

cout << "3. Who is the goddess of speech, wisdom and learning?\n";

cout << " a. Shasti\n";

cout << " c. Sarswati\n";

cin >> a3;

ans3 = tolower(a3);

if (ans3 == 'b') {

cout << "Your answer is correct\n";


point++;

else {

cout << "Your answer is wrong\n";

cout << "Correct answer is b.Sarswati \n";

break;

case 'f':

cout << "this goddess seats on a lotus.\n";

cout << "3. Who is the goddess of speech, wisdom and learning?\n";

cout << "a. Shasti\n";

cout << "b. Sarswati\n";

cout << "c. Satyanarayana\n";

cout << "d. savitar\n";

cin >> a3;

ans3 = tolower(a3);

if (ans3 == 'b') {

cout << "Your answer is correct\n";

point++;

else {

cout << "Your answer is wrong\n";

cout << "Correct answer is b.Sarswati\n";


}

break;

default:

cout << "Your answer is wrong\n";

cout << "Correct answer is Sarswati\n";

break;

}}

void Sports::Q4(){

char ans4, a4;

cout << "4. In which country cricket is established? \n";

cout << "a. india\n";

cout << "b. england\n";

cout << "c. australia\n";

cout << "d. pakistan\n\n\n";

cout << "You can also use life line\n\n";

cout << "e. lifeline 50:50\n";

cout << "f. lifeline hint\n";

cin >> ans4;

ans4 = tolower(ans4);

switch (ans4) {

case 'b':
cout << "Your answer is correct\n";

point++;

break;

case 'e':

cout << "4. In which country cricket is established? \n";

cout << " a. india\n";

cout << " b. england\n";

cin >> a4;

ans4 = tolower(a4);

if (ans4 == 'b') {

cout << "Your answer is correct\n";

point++;

else {

cout << "Your answer is wrong\n";

cout << "Correct answer is b.england \n";

break;

case 'f':

cout << "this is a english country.\n";

cout << "4. In which country cricket is established?\n";

cout << "a. india\n";

cout << "b. england\n";


cout << "c. australia\n";

cout << "d. pakistan\n";

cin >> a4;

ans4 = tolower(a4);

if (ans4 == 'b') {

cout << "Your answer is correct\n";

point++;

else {

cout << "Your answer is wrong\n";

cout << "Correct answer is b.england\n";

break;

default:

cout << "Your answer is wrong\n";

cout << "Correct answer is england\n";

break;

}}

void Sports::Q5(){

char ans5, a5;

cout << "5. howmany players are there in a cricket team? \n";

cout << "a. 13\n";


cout << "b. 10\n";

cout << "c. 9\n";

cout << "d. 11\n\n\n";

cout << "You can also use life line\n\n";

cout << "e. lifeline 50:50\n";

cout << "f. lifeline hint\n";

cin >> ans5;

ans5 = tolower(ans5);

switch (ans5) {

case 'd':

cout << "Your answer is correct\n";

point++;

break;

case 'e':

cout << "5. howmany players are there in a cricket team? \n";

cout << " a. 13\n";

cout << " d. 11\n";

cin >> a5;

ans5 = tolower(a5);

if (ans5 == 'd') {

cout << "Your answer is correct\n";


point++;

else {

cout << "Your answer is wrong\n";

cout << "Correct answer is d.11 \n";

break;

case 'f':

cout << "no lifeline in this question.\n";

cout << "5. howmany players are there in a cricket team? \n";

cout << "a. 13\n";

cout << "b. 10\n";

cout << "c. 9\n";

cout << "d. 11\n";

cin >> a5;

ans5 = tolower(a5);

if (ans5 == 'd') {

cout << "Your answer is correct\n";

point++;

else {

cout << "Your answer is wrong\n";

cout << "Correct answer is d.11\n";


}

break;

default:

cout << "Your answer is wrong\n";

cout << "Correct answer is 11\n";

break;

}}

void Sports::Q6(){

char ans6, a6;

cout << "6. What is the most popular winter sport in the world?\n";

cout << "a. cricket\n";

cout << "b. volley ball\n";

cout << "c. football\n";

cout << "d. hockey\n\n\n";

cout << "You can also use life line\n\n";

cout << "e. lifeline 50:50\n";

cout << "f. lifeline hint\n";

cin >> ans6;

ans6 = tolower(ans6);

switch (ans6) {

case 'd':

cout << "Your answer is correct\n";


point++;

break;

case 'e':

cout << "6. What is the most popular winter sport in the world?\n";

cout << " a. cricket\n";

cout << " d. hockey\n";

cin >> a6;

ans6 = tolower(a6);

if (ans6 == 'd') {

cout << "Your answer is correct\n";

point++;

else {

cout << "Your answer is wrong\n";

cout << "Correct answer is d.hockey \n";

break;

case 'f':

cout << "this game is established in united kingdome.\n";

cout << "6. What is the most popular winter sport in the world?\n";

cout << "a. cricket\n";

cout << "b. volley ball\n";

cout << "c. foot ball\n";


cout << "d. cricket\n";

cin >> a6;

ans6 = tolower(a6);

if (ans6== 'd') {

cout << "Your answer is correct\n";

point++;

else {

cout << "Your answer is wrong\n";

cout << "Correct answer is d.hockey\n";

break;

default:

cout << "Your answer is wrong\n";

cout << "Correct answer is hockey\n";

break;

}}

void Programming::Q7(){

char ans7, a7;

cout << "7.which is an scripting language?\n";

cout << "a. c++\n";

cout << "b. c\n";


cout << "c. java\n";

cout << "d. java script\n\n\n";

cout << "You can also use life line\n\n";

cout << "e. lifeline 50:50\n";

cout << "f. lifeline hint\n";

cin >> ans7;

ans7 = tolower(ans7);

switch (ans7) {

case 'd':

cout << "Your answer is correct\n";

point++;

break;

case 'e':

cout << "7. wich is an scripting language?\n";

cout << " a. c++\n";

cout << " d. java script\n";

cin >> a7;

ans7 = tolower(a7);

if (ans7 == 'd') {

cout << "Your answer is correct\n";

point++;
}

else {

cout << "Your answer is wrong\n";

cout << "Correct answer is d.juava script \n";

break;

case 'f':

cout << "used to build web sites.\n";

cout << "7. wich is an scripting language?\n";

cout << "a. c++\n";

cout << "b. c\n";

cout << "c. java\n";

cout << "d. java script\n";

cin >> a7;

ans7 = tolower(a7);

if (ans7== 'd') {

cout << "Your answer is correct\n";

point++;

else {

cout << "Your answer is wrong\n";

cout << "Correct answer is d.java script\n";

}
break;

default:

cout << "Your answer is wrong\n";

cout << "Correct answer is java script.\n";

break;

}}

void Programming::Q8(){

char ans8, a8;

cout << "8.wich is an front-end language?\n";

cout << "a. c++\n";

cout << "b. c\n";

cout << "c. css\n";

cout << "d. java\n\n\n";

cout << "You can also use life line\n\n";

cout << "e. lifeline 50:50\n";

cout << "f. lifeline hint\n";

cin >> ans8;

ans8 = tolower(ans8);

switch (ans8) {

case 'c':

cout << "Your answer is correct\n";

point++;

break;
case 'e':

cout << "8. wich is an front-end language?\n";

cout << " a. c++\n";

cout << " c. css\n";

cin >> a8;

ans8 = tolower(a8);

if (ans8 == 'c') {

cout << "Your answer is correct\n";

point++;

else {

cout << "Your answer is wrong\n";

cout << "Correct answer is c.css \n";

break;

case 'f':

cout << "used to design web sites.\n";

cout << "8. wich is an front-end language?\n";

cout << "a. c++\n";

cout << "b. c\n";

cout << "c. css\n";

cout << "d. java\n";

cin >> a8;


ans8 = tolower(a8);

if (ans8== 'c') {

cout << "Your answer is correct\n";

point++;

else {

cout << "Your answer is wrong\n";

cout << "Correct answer is c.css\n";

break;

default:

cout << "Your answer is wrong\n";

cout << "Correct answer is css.\n";

break;

}}

void Sports::Q9(){

char ans9, a9;

cout << "9.in which year india got independence.\n";

cout << "a. 1990\n";

cout << "b. 1940\n";

cout << "c. 1947\n";

cout << "d. 1950\n\n\n";

cout << "You can also use life line\n\n";

cout << "e. lifeline 50:50\n";


cout << "f. lifeline hint\n";

cin >> ans9;

ans9 = tolower(ans9);

switch (ans9) {

case 'c':

cout << "Your answer is correct\n";

point++;

break;

case 'e':

cout << "9. in which year india got independence.\n";

cout << " a. 1990\n";

cout << " c. 1947\n";

cin >> a9;

ans9 = tolower(a9);

if (ans9 == 'c') {

cout << "Your answer is correct\n";

point++;

else {

cout << "Your answer is wrong\n";

cout << "Correct answer is c.1947 \n";


}

break;

case 'f':

cout << "it was an odd year.\n";

cout << "9. in which year india got independence.\n";

cout << "a. 1990\n";

cout << "b. 1940\n";

cout << "c. 1947\n";

cout << "d. 1950\n";

cin >> a9;

ans9 = tolower(a9);

if (ans9== 'c') {

cout << "Your answer is correct\n";

point++;

else {

cout << "Your answer is wrong\n";

cout << "Correct answer is c.1947\n";

break;

default:
cout << "Your answer is wrong\n";

cout << "Correct answer is 1947.\n";

break;

}
Output Screenshots

You might also like