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

  Hr faces in the future

What do you consider the most significant risks that HR faces in the future and how you prepare for them?

  Describe leadership methods and theories

Write a 350- to 700-word paper in which you describe leadership methods and theories that may lead to an effective culture in the public sector.

  Propose two safeguards that facebook should put into place

Propose two safeguards that Facebook and other social media platforms should put into place to help prevent acts of violence from being broadcasted.

  Aggregate planning strategy

Which aggregate planning strategy is more appealing for the following contexts? Level strategy or Chase strategy?and why

  What went wrong in wal-marts attempt to globalize

Using the concepts from the assigned chapter, reflect on what went wrong in Wal-Mart's attempt to globalize its value proposition through expansion in Germany.

  Sum of demands from each market

A monopolist sells the same product at the same price into two di?erent markets.

  Important information about externality

What is an externality - Why might externalities lead a firm to discharge too much pollution into a river?

  Describe what does healthcare organization produce

Describe what does healthcare organization produce and what are the production costs for a hospital organization?

  Assessing strategic issues faces by industriesto test your

assessing strategic issues faces by industriesto test your team members ability to think strategically and apply what

  Instructional design and rapid e-learning

Explain what is rapid e-learning and why would an instructional designer ever use this method of creating training? Is this the same as accelerated learning?

  How can you use the dynamic team model to your advantage

Many organizations such as my company require rapid formation of ad hoc teams who will each contribute based on their expertise. How can you use this dynamic team model to your advantage in an entrepreneurial setting?

  Help desk manager training programoutline a training

help desk manager training programoutline a training program that will ensure that the new manager is properly trained

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