Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

BEE 2A Siraj ud din 02-133202-051

CET # 1

NAME: SIRAJ UDDIN KURD


SECTION: 2-A
COURSE: Programming Fundamentals Labs
INSTRUCTOR: Sir Abdul Rafay
DATE: 6-4--20201

Q1: \\Code\\
BEE 2A Siraj ud din 02-133202-051

#include <iostream>

using namespace std; //the answer to each question depends upon what kind of marvel fan are you…

int main()

int K;

int J;

int H;

cout<<"\"What is the reason uncle ben dies? \" says the teacher.\n If you dont answer this question
you wont get a single mark...\n";

cout<<"Options are:\n 1: he was shot\n 2: he used drugs\n 3 : it was peters fault"<<endl;

cin >>K ;

if( K == 1)

cout << "True!\t"<< "+2\n\n" ;

else if ( K !=1 )

cout << "Naa molana naaaa\t"<<"-2\n"<<endl;

cout<<"\"how did Hulk evolve? \" says the teacher.\n If you dont answer this question you wont get a
single mark...\n";

cout<<"Options are:\n 1: he was shot\n 2: he used drugs\n 3 : it was peters fault"<<endl;

cin >> J ;

if( J == 2)

{
BEE 2A Siraj ud din 02-133202-051

cout<< "True!\t"<< "+2\n\n" ;

else if ( J != 2 )

cout << "Naa molana naaaa\t"<<"-2\n"<<endl;

cout<<"\"where was ant man? \" says the teacher.\n If you dont answer this question you wont get a
single mark...\n";

cout<<"if you don,t know he answer then type 0\n";

cout<<"Options are:\n 1: he was shot\n 2: he used drugs\n 3 : it was peters fault"<<endl;

cin >> H ;

if( H == 3)

cout << "True!\t"<< "+2\n\n" ;

else if ( H!= 3 )

cout << "Naa molana naaaa\t"<<"-2\n"<<endl;

return 0;

}
BEE 2A Siraj ud din 02-133202-051
BEE 2A Siraj ud din 02-133202-051

chart:

Inpuinput=

1 how did uncle ben die?

2. how did hulk evolve?

3. where was ant man?

If thw answer is
right

true Output=

+2

A
BEE 2A Siraj ud din 02-133202-051

Flow
start
If the answer
is wrong

fails

Output=

-2

END

You might also like