How many votes color received

Assignment Help Business Management
Reference no: EM131912197

This program requires you to use a loop as well as the switch statement. You will display this menu on the screen.

(Press 9 to stop voting)

The Many Colors of M&M's Candy

  1. red
  2. blue
  3. brown
  4. yellow
  5. green
  6. purple

Vote on your favorite color by pressing the number before it.

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/she types the sentinel character 9. Display the menu and ask the user to enter a number. Check the number entered against the numbers 1 - 2 - 3 - 4 - 5 - 6. If the number entered is 1, add one to the redctr. If the user has entered 2, add one to the bluectr, etc.

When the user has pressed the 9 to exit, print out a display telling how many votes each color received.

Reference no: EM131912197

Questions Cloud

Explain the gramm-leach bliley act : Explain the Gramm-Leach Bliley Act. You must explain the background and history of Act. What is relevance of health care plans, providers and clearinghouses?
Context of a national broadband network : Compare and contrast fibre optic and wireless technologies within the context of a National Broadband Network (NBN) for Australia?
Research the types of containers available : Research the types of containers available for different valuables and situations in the home.
Efficiency and memory useful in programming : What is data manipulation important and why efficiency and memory useful in programming?
How many votes color received : When the user has pressed the 9 to exit, print out a display telling how many votes each color received.
Explain the theoretical perspectives in brief : When conducting your research, consider the issues that arise within these different disciplines. In your analysis of each topic, explain the theoretical.
What must risk-free rate be : A stock has an expected return of 13.2 percent, a beta of 1.40, and the return on the market is 10.10 percent. What must the risk-free rate be?
What is aftertax salvage value of asset : If the tax rate is 34 percent, what is the aftertax salvage value of the asset?
Why we should have more regulations on gun control : Write a persuasive speech about the issue of why we should have more regulations on gun control. Use the two template outline as guideline to write the speech.

Reviews

Write a Review

Business Management Questions & Answers

  Police community relations programs

Why did early police community relations programs focus on minority communities?

  Contracts as well as due dates for annual maintenance fees

Microsoft Excel- You have a list of contracts as well as due dates for annual maintenance fees

  What legal form of ownership would you recommend eddy use

what legal form of ownership would you recommend he use? Please give your rationale for your recommendation, including any possible downsides to the form.

  Business professionals to avoid unethical behaviour

When we realise that the interaction of all three(the law, politics and ethics can influence our wallets our ability to purchase a home as well as our children's or grandchildren's ability to live like we do is it our job as business professionals..

  Find a unique thermostat

Search the web to find a unique thermostat you'd like in your home or apartment to control your air conditioner and furnace (yes, pretend you've got both if necessary!).

  Integrated ecommerce software

How E-Business can benefit from a more integrated Ecommerce software (combining product catalog, shopping cart, and payment system)?

  Assignment: long-term investment decisions

Assume that the low-calorie frozen, microwavable food company from Assignments 1 and 2 wants to expand and has to make some long-term capital budgeting decisions. The company is currently facing increases in the costs of major ingredients.

  Compare with the original equilibrium in part

If there is an increase in autonomous import expenditure from100 to 200 resulting from an increase in the currency exchangerate, calculate the new equilibrium level of income and the valueof the multiplier. Compare with the original equilibrium i..

  Discuss the advantages of using social media in workplace

Discuss the advantages and disadvantages of using social media in the workplace. Compare and contrast at least 2 of the current social media options.

  The most valuable lesson from quarter

Why do people often settle for something less than excellent?-  What rewards can a person receive by creating excellence at work and in life?

  Explain new technologies or material changes

Explain new technologies or material changes that transform businesses' or companies' expectations and the way they interact

  Fitting leadership style on score

Identify one aspect of your current leadership style that you must change in order to fit into your leadership style on your score.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd