Write a program asks for the number of votes


Discuss the below:

Q: Suppose viewers have voted and we have counted the votes. We want to know who the winner is. Write a program that asks for the number of votes each contestant received. Compare these three numbers to determine the result of the contest. There are seven possible outcomes. Your program must determine which of the following is true and display it on the screen:

"Amanda wins"
"Ben wins"
"Chris wins"
"Amanda and Ben tie for first place"
"Amanda and Chris tie for first place"
"Ben and Chris tie for first place"
"Amanda, Ben and Chris all tie for first place"

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write a program asks for the number of votes
Reference No:- TGS01936858

Now Priced at $25 (50% Discount)

Recommended (96%)

Rated (4.8/5)