All pastes #1906602 Raw Edit

Miscellany

public text v1 · immutable
#1906602 ·published 2010-07-23 07:07 UTC
rendered paste body
// Taylor black's superhero quiz

#include <iostream>  //needed
using namespace std; //needed

int main ()
{
    
    float score, Answer, Count=0;
    const float NumQuest = 10;
    
    cout<<"Hello, welcome to the SHIELD mainframe, this is an advanced program to test your hero knolage."<< endl;
    cout<<"Just type in the number that belongs to the correct answer.\t" << endl;
    system("pause");
    cout<<""<<endl;
    //////#1
    cout<<"What is the name of Burce Wayne's butler\t" << endl;
    cout<<"1. Rosie the Robot Maid\t" << endl;
    cout<<"2. Duckworth\t" << endl;
    cout<<"3. Alfred Pennyworth\t" << endl;
    cout<<"4. Sir Lanceallot\t" << endl;
    cin>>Answer;
    if (Answer == 3)
    {
               Count= Count + 3.3;
    }
    cout<<""<<endl;
    //////#2
    cout<<"Who is the creator of Spiderman?\t" << endl;
    cout<<"1. Robert E Lee\t" << endl;
    cout<<"2. Stan Lee\t" << endl;
    cout<<"3. Chuck Norris\t" << endl;
    cout<<"4. Bob Kane\t" << endl;
    cin>>Answer;
    if (Answer == 2)
    {
               Count = Count + 3.3;
    }   
     //////#3
    cout<<"Witch is the most powerful super power move?\t" << endl;
    cout<<"1. Iron Man's Fist\t" << endl;
    cout<<"2. Sprderman's webs\t" << endl;
    cout<<"3. Rondhouse kick\t" << endl;
    cout<<"4. VK Kick\t" << endl;
    cin>>Answer;
    if (Answer == 4)
    {
               Count = Count + 3.3;
    }    
     
    cout<<""<<endl;
    score = Count/NumQuest;
    score = score * 100;
    cout<<"\nYou answered..."<<score<<"% correctly"<<endl;
    
    system("pause");
    return 0;
}