Purchase Solution

Keeping Track Of Votes for M&M Colours

Not what you're looking for?

Ask Custom Question

Useing a loop and switch statement. In this program, you will keep track of the number of votes for each color of m&m's candy. The user will be able to vote until he types the sentinal character 9. Display the menu and ask the user to enter a number. Check the number entered aginst the display numbers 1-2-3-4-5-6. If the number entered is 1, add one to the redctr. Ig the user enters 2, add one to the bluectr ect....
1-red, 2-blue,3-brown,4-yellow,5-green,6-purple. Vote your favorite color by pressing the number before it.

Purchase this Solution

Solution Summary

This solution provides a sample program for a student tutorial.

Solution provided by:
  • BEng, Allahabad University, India
  • MSc , Pune University, India
  • PhD (IP), Pune University, India
Recent Feedback
  • " In question 2, you incorrectly add in the $3.00 dividend that was just paid to determine the value of the stock price using the dividend discount model. In question 4 response, it should have also been recognized that dividend discount models are not useful if any of the parameters used in the model are inaccurate. "
  • "feedback: fail to recognize the operating cash flow will not begin until the end of year 3."
  • "Answer was correct"
  • "Great thanks"
  • "Perfect solution..thank you"
Purchase this Solution

Free BrainMass Quizzes
Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Basic Networking Questions

This quiz consists of some basic networking questions.

Javscript Basics

Quiz on basics of javascript programming language.

Excel Introductory Quiz

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