Purchase Solution

C++ Program

Not what you're looking for?

Ask Custom Question

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"

I was recently told to use if else statements and switch statements to solve problem. I attached my attempt.

Attachments
Purchase this Solution

Solution Summary

Correct solution to the stated problem is attached.

Solution Preview

Hi,

I looked at your first attempt which is nicely done. However, I found one logical mistake ...

Purchase this Solution


Free BrainMass Quizzes
Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Basic Networking Questions

This quiz consists of some basic networking questions.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.