PLCEP Report

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

NED UNIVERSITY OF ENGINEERING

AND TECHNOLOGY

DEPARTMENT OF TELECOMMUNICATIONS ENGINEERING


BATCH 2023

PROJECT REPORT

QUIZ GAME IN C PROGRAMMING

COURSE CODE AND TITLE: PROGRAMMING LANGUAGES (TC-105)

GROUP MEMBERS:
 LAIBA BAIG(TC-014)
 MAHRUKH ARIF(TC-013)

ASSIGNED BY:

DR AMIR ZEB
INTRODUCTION:
Welcome to our exciting Quiz Game project. Get ready to test your knowledge and have a blast
with challenge questions. whether you’re a programming prodigy or a curious learner, this quiz
is designed to entertain and enlighten. Sharpen your wits, and let the quiz adventure begin!

MOTIVATION:
Designing a quiz game can be a rewarding challenge as it allows you to engage and entertain
users while promoting learning. It provides an opportunity to create a fun and interactive
experience that stimulates curiosity and knowledge retention. Additionally, seeing players enjoy
and benefit from your quiz can be a motivating factor, driving you to craft a captivating and
educational gaming experience.

Technical Details:
Programming Language:
The Quiz Game project is implemented in C programming language, ensuring efficiency and low-
level control over system resources.
User Interface:

We employ a console-based interface for a streamlined user experience. The user interacts with
the quiz through simple text prompts and inputs.
Question Storage:
Questions and answer options are stored in a structured format, likely using arrays or linked lists,
to facilitate easy retrieval and presentation during the quiz.
Scoring System:
A scoring mechanism is implemented to evaluate user performance. The system calculates scores
based on correct answers and provides feedback at the end of the quiz.
Modular Design:
The project is organized into modular components, enhancing code maintainability and
facilitating future expansions or modifications.
Documentation:
Clear and concise code documentation is maintained to aid developers in understanding the
project structure and functional.
CODE:
#include<stdio.h>
#include<conio.h>

void main(void)
{
int i;
int ans1, ans2, ans3, ans4, ans5;
int point1, point2, point3, point4, point5;
int point01, point02, point03, point04, point05;
int total1, total2, total3;

printf(“Welcome to the Game \n\n”);


printf(“> Press 7 to start the game \n\n”);
printf(“>Press 0 to quit the game\n\n”);
scanf(“%d”,&i);

if(i==7)
{
printf(“The Game has started \n\n”);
}
elseif(i==0)
{
printf(“The Game has ended\n\n”);
}
else
{
printf(“Invalid \n\n”);
}
if(i==7)
{

printf(“1) Which one is the first engine in the internet? \n\n”);


printf(“1) Google \n”);
printf(“2) Archie\n”);
printf(“3) Wais\n”);
printf(“4) Altavista\n”);

printf(“ Enter your answer : ”);


scanf(“%d”, &ans1);
if(ans1==2)
{
printf(“Correct answer \n\n”);

point1 = 5;
printf(“ You have scored %d point \n”,point1);
}
else
{
printf(“Wrong answer \n\n”);
point01 = 0;
printf(“ You have scored %d point \n”,point01);
}

printf(“2) Which one is the first browser invented in 1990? \n\n”);


printf(“1) Internet Explorer \n”);
printf(“2) Mosaic\n”);
printf(“3) Mozilla\n”);
printf(“4) Nexus\n”);

printf(“ Enter your answer : ”);


scanf(“%d”, &ans2);

if(ans2==4)
{
printf(“Correct answer \n\n”);
point2 = 5;
printf(“ You have scored %d point \n”,point2);
}
else
{
printf(“Wrong answer \n\n”);
point02 = 0;
printf(“ You have scored %d point \n”,point02);
}

printf(“3) First computer virus is known as? \n\n”);


printf(“1) Rabbit \n”);
printf(“2) Creeper Virus \n”);
printf(“3) Elk Cloner \n”);
printf(“4) SCA Virus \n”);

printf(“ Enter your answer : ”);


scanf(“%d”, &ans3);

if(ans3==2)
{
printf(“Correct answer \n\n”);

point3 = 5;
printf(“ You have scored %d point \n”,point3);
}
else
{
printf(“Wrong answer \n\n”);
point03 = 0;
printf(“ You have scored %d point \n”,point03);
}

printf(“4) Firewall in computer is used for… \n\n”);


printf(“1) Security \n”);
printf(“2) Data Transmission \n”);
printf(“3) Monitoring \n”);
printf(“4) Authentication \n”);

printf(“ Enter your answer : ”);


scanf(“%d”, &ans4);

if(ans4==1)
{
printf(“Correct answer \n\n”);
point4 = 5;
printf(“ You have scored %d point \n”,point4);
}
else
{
printf(“Wrong answer \n\n”);
point04 = 0;
printf(“ You have scored %d point \n”,point04);
}
printf(“5) Which of the following is not a DBMS software? \n\n”);
printf(“1) My SQL \n”);
printf(“2) Oracle \n”);
printf(“3) Cobal \n”);
printf(“4) Sybase \n”);

printf(“ Enter your answer : ”);


scanf(“%d”, &ans5);

if(ans5==3)
{
printf(“Correct answer \n\n”);
point5 = 5;
printf(“ You have scored %d point \n”,point5);
}

else
{
printf(“Wrong answer \n\n”);
point05 = 0;
printf(“ You have scored %d point \n”,point05);
}
}
FLOWCHART:

start

Assign int i,

Ans 1 –ans 5

Enter value of i

If No
i==7

yes
Which one is 1st
engine in internet

Enter your ans

No You have scored 0


If ans
I==2 points

yes
You have scored 5
points

Which one is 1st browser


invented invented in 1990
Enter your Answer

No
If ans You have scored
2==4 0 points

yes

First computer virus is


known as

Enter your answer

No You have scored 0


If ans
3==2 points

yes
You have scored 5
points

Firewall in computer
is used as

If ans No You have scored 0


4==1 points

You have scored 5


points
Which of the following is
not a DBMS software ?

No
If ans
0 points
5==3

You have scored 5


points

Stop

Quiz Challenges:
Time Pressure:
Introduce time constraints for answering questions to add an element of urgency and test
participants' ability to think quickly.
Difficulty Levels:

Create a range of difficulty levels for questions, challenging players of varying expertise. Easy
questions for beginners, moderate for intermediate, and tough ones for advanced participants.
Bonus Rounds:
Include special bonus rounds where correct answers earn extra points, adding an extra layer of
excitement.
Multiple Correct Answers:
Design questions where there may be more than one correct answer, requiring participants to
think critically and choose wisely.
Speed Rounds:
Implement rounds where the faster a participant answers, the more points they earn, promoting
quick thinking and decision-making.
Penalty for Incorrect Answers:
Deduct points for incorrect answers to encourage strategic thinking and discourage random
guessing.

Remember, a balance between difficulty and enjoyment is key to keeping participants engaged.
Adjust the challenges based on your target audience and the overall theme of the quiz.

Quiz Game Project Proposal


Project Overview:
The Quiz Master application aims to provide an engaging and educational experience for users
through an interactive quiz game. Targeting both web and mobile platforms, this project seeks
to combine entertainment and learning in a user-friendly package.

Key Features:
Multiple-Choice Questions:
Users can answer a variety of questions spanning different topics and difficulty levels.

Scoring System:
Implement a scoring mechanism to track users' performance and competitiveness.
User Authentication:
Allow users to create accounts, track their progress, and compete with friends.
Game Mechanics:
Include features such as time limits for questions, lifelines, and adaptive difficulty.
Leaderboard:
Implement a leaderboard system to encourage friendly competition among users.

The Quiz Master project aims to deliver an entertaining and educational quiz game experience.
We believe this application will cater to a broad audience while maintaining high standards of
user experience and security.

Conclusion:
In conclusion, the quiz game project represents a culmination of creativity and technical prowess.
Through meticulous design and user-friendly interfaces, we aimed to engage players in a
stimulating intellectual challenge. The project underscores our commitment to fostering learning
in an entertaining format, promoting both fun and knowledge acquisition. As we wrap up this
endeavor, we reflect on the collaborative effort that brought this quiz game to life, and we look
forward to its positive impact on users' experiences and learning journeys.

You might also like