c++ coding wanted

label Programming
account_circle Unassigned
schedule 2 Hours
account_balance_wallet $5

Two players can play this game and the player who crosses 100 first is the winner. (Note: The game will be a quiz competition). Write a C++ program for the same

Oct 26th, 2013

Thank you for the opportunity to help you with your question!

#include<iostream>
using namespace std;
int main()
{
   int player1=0,player2=0;
   char ans1,ans2;
   cout<<"\nIn which decade was the American Institute of Electrical Engineers (AIEE) founded?"
    <<"\nA.1850s   B.1880s\nC.1930s   D.1950s"
    <<"\nplayer1 answer: ";
   cin>>ans1;
   cout<<"\n\nplayer2 answer: ";
   cin>>ans2;
   if(ans1=='b'||ans1=='B')
   cout<<"player 1 win\n";
   else
   cout<<"player 2 win\n";
   return 0;
}


this is just a very basic program, if you want a proper quiz program, need more money.

Please let me know if you need any clarification. I'm always happy to answer your questions.
Jun 13th, 2015

Did you know? You can earn $20 for every friend you invite to Studypool!
Click here to
Refer a Friend
...
Oct 26th, 2013
...
Oct 26th, 2013
Jun 28th, 2017
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer