Programming
c++ coding wanted

Question Description

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

Final Answer

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.

geekcode (70)
Carnegie Mellon University

Anonymous
Top quality work from this tutor! I’ll be back!

Anonymous
Heard about Studypool for a while and finally tried it. Glad I did caus this was really helpful.

Anonymous
Thank you! Reasonably priced given the quality

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors