Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Business Management Expert

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.

Business Management, Management Studies

  • Category:- Business Management
  • Reference No.:- M92750863
  • Price:- $10

Priced at Now at $10, Verified Solution

Have any Question?


Related Questions in Business Management

In class today we were speaking about importance of

In class today we were speaking about importance of adopting active listening importance of adopting active listening in the performance of their duties and responsibilities. I do not understand the impact of poor active ...

1 in farmville there are 80 million people employed 20

1) In Farmville, there are 80 million people employed, 20 million unemployed and 60 million not in the labor force. a) What is the labor force and adult population? b) What is the labor force participation rate? c) What ...

Discuss the link between strategy and performance select an

Discuss the link between strategy and performance. Select an industry and discuss 2 rival firms in that industry and how they illustrate the difference between strategy and performance

What is the difference between a greenfield investment and

What is the difference between a greenfield investment and an acquisition? Which form of investment is a firm more likely to choose?

Identify three decision making biases and errors explain

Identify three decision making biases and errors. Explain why each bias or error you identified can have a negative effect on decision making.

Briefly discuss the advantages and disadvantages of line

Briefly discuss the advantages and disadvantages of line balancing?

Sociologist is interested in comparing the ages of husbands

Sociologist is interested in comparing the ages of husbands and wives. He collected the data below, which shows the ages for the husband and wife in a randomly chosen sample of nine couples.  Couple A B C D E F G H I --- ...

Does fastenal have a sustainable competitive advantage over

Does Fastenal have a sustainable competitive advantage over other brick and mortar industrial suppliers? Does Fastenal have any competitive advantage over Amazon Business that could help protect Fastenal's business again ...

What are the differences between the classic marx approach

What are the differences between the classic Marx approach to capitalist globalization and the "world systems theory"?

The saying when in rome as the romans is part of todays

The saying, "When in Rome, as the Romans" is part of today's society's vernacular. Would be inclined to use this as your guiding principle in regards to ethical behavior in the work place? Why or why not?

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As