Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!news.glorb.com!news.litech.org!News.Dal.Ca!newsflash.concordia.ca!canopus.cc.umanitoba.ca!tribune.usask.ca!support1.mathforum.org!not-for-mail
From: fada <djwhiz@live.com>
Newsgroups: comp.soft-sys.matlab
Subject: help with program PLEASE URGENT
Date: Wed, 22 Oct 2008 10:07:10 EDT
Organization: The Math Forum
Lines: 38
Message-ID: <27477259.1224684461338.JavaMail.jakarta@nitrogen.mathforum.org>
NNTP-Posting-Host: nitrogen.mathforum.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: support1.mathforum.org 1224684461 25345 144.118.30.135 (22 Oct 2008 14:07:41 GMT)
X-Complaints-To: news@mathforum.org
NNTP-Posting-Date: Wed, 22 Oct 2008 14:07:41 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:496734


I DON'T KNOW MUCH ABOUT MATLAB
how do i write a program that performs a survey tally on beverages. the program should prompt the user for the next person until a sentinel value of -1 is entered to terminate the program. each person participating in the survey should choose their favorite beverage from the following list: 
1. coffee 2. tea 3. coke 4. orange juice 


sample run 

please input the favorite beverage of person #1: choose 1, 2, 3 or 4 from above menu or -1 to exit the program 
4 

please input the favorite beverage of person #1: choose 1, 2, 3 or 4 from above menu or -1 to exit the program 
1 

please input the favorite beverage of person #1: choose 1, 2, 3 or 4 from above menu or -1 to exit the program 
3 

please input the favorite beverage of person #1: choose 1, 2, 3 or 4 from above menu or -1 to exit the program 
1 

please input the favorite beverage of person #1: choose 1, 2, 3 or 4 from above menu or -1 to exit the program 
1 

please input the favorite beverage of person #1: choose 1, 2, 3 or 4 from above menu or -1 to exit the program 
-1 

the total number of people surveyed is 5. The results are as follows: 

Beverage Number of votes 
*********************************************** 
coffee 3 
tea 0 
coke 1 
orange juice 1 



how is it that i write this program please may i get some help
NEED SUM 1 TO SHOW ME HOW ITS WRITTEN PLEASE!!!