<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237980</link>
    <title>MATLAB Central Newsreader - help with program PLEASE URGENT</title>
    <description>Feed for thread: help with program PLEASE URGENT</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Wed, 22 Oct 2008 14:07:10 -0400</pubDate>
      <title>help with program PLEASE URGENT</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237980#606815</link>
      <author>fada</author>
      <description>I DON'T KNOW MUCH ABOUT MATLAB&lt;br&gt;
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: &lt;br&gt;
1. coffee 2. tea 3. coke 4. orange juice &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
sample run &lt;br&gt;
&lt;br&gt;
please input the favorite beverage of person #1: choose 1, 2, 3 or 4 from above menu or -1 to exit the program &lt;br&gt;
4 &lt;br&gt;
&lt;br&gt;
please input the favorite beverage of person #1: choose 1, 2, 3 or 4 from above menu or -1 to exit the program &lt;br&gt;
1 &lt;br&gt;
&lt;br&gt;
please input the favorite beverage of person #1: choose 1, 2, 3 or 4 from above menu or -1 to exit the program &lt;br&gt;
3 &lt;br&gt;
&lt;br&gt;
please input the favorite beverage of person #1: choose 1, 2, 3 or 4 from above menu or -1 to exit the program &lt;br&gt;
1 &lt;br&gt;
&lt;br&gt;
please input the favorite beverage of person #1: choose 1, 2, 3 or 4 from above menu or -1 to exit the program &lt;br&gt;
1 &lt;br&gt;
&lt;br&gt;
please input the favorite beverage of person #1: choose 1, 2, 3 or 4 from above menu or -1 to exit the program &lt;br&gt;
-1 &lt;br&gt;
&lt;br&gt;
the total number of people surveyed is 5. The results are as follows: &lt;br&gt;
&lt;br&gt;
Beverage Number of votes &lt;br&gt;
*********************************************** &lt;br&gt;
coffee 3 &lt;br&gt;
tea 0 &lt;br&gt;
coke 1 &lt;br&gt;
orange juice 1 &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
how is it that i write this program please may i get some help&lt;br&gt;
NEED SUM 1 TO SHOW ME HOW ITS WRITTEN PLEASE!!!</description>
    </item>
    <item>
      <pubDate>Wed, 22 Oct 2008 14:38:13 -0400</pubDate>
      <title>Re: help with program PLEASE URGENT</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237980#606820</link>
      <author>Bas</author>
      <description>On Oct 22, 4:07 pm, fada &amp;lt;djw...@live.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; NEED SUM 1 TO SHOW ME HOW ITS WRITTEN PLEASE!!!&lt;br&gt;
&lt;br&gt;
We are not going to do your homework for you, buddy, screaming in CAPS&lt;br&gt;
LOCK is not going to help anything. And it is only urgent because you&lt;br&gt;
started doing your homework late, there are only volunteers here that&lt;br&gt;
are not in a hurry to help you. Anyhow, you might start by typing&lt;br&gt;
'help while' and 'help input' in your matlab prompt ...&lt;br&gt;
&lt;br&gt;
Bas</description>
    </item>
    <item>
      <pubDate>Wed, 22 Oct 2008 15:23:31 -0400</pubDate>
      <title>Re: help with program PLEASE URGENT</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237980#606824</link>
      <author>ImageAnalyst</author>
      <description>On Oct 22, 10:07=A0am, fada &amp;lt;djw...@live.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; I DON'T KNOW MUCH ABOUT MATLAB&lt;br&gt;
&amp;gt; how do i write a program that performs a survey tally on beverages. the p=&lt;br&gt;
rogram should prompt the user for the next person until a sentinel value of=&lt;br&gt;
&amp;nbsp;-1 is entered to terminate the program. each person participating in the s=&lt;br&gt;
urvey should choose their favorite beverage from the following list:&lt;br&gt;
&amp;gt; 1. coffee 2. tea 3. coke 4. orange juice&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; sample run&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; please input the favorite beverage of person #1: choose 1, 2, 3 or 4 from=&lt;br&gt;
&amp;nbsp;above menu or -1 to exit the program&lt;br&gt;
&amp;gt; 4&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; please input the favorite beverage of person #1: choose 1, 2, 3 or 4 from=&lt;br&gt;
&amp;nbsp;above menu or -1 to exit the program&lt;br&gt;
&amp;gt; 1&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; please input the favorite beverage of person #1: choose 1, 2, 3 or 4 from=&lt;br&gt;
&amp;nbsp;above menu or -1 to exit the program&lt;br&gt;
&amp;gt; 3&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; please input the favorite beverage of person #1: choose 1, 2, 3 or 4 from=&lt;br&gt;
&amp;nbsp;above menu or -1 to exit the program&lt;br&gt;
&amp;gt; 1&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; please input the favorite beverage of person #1: choose 1, 2, 3 or 4 from=&lt;br&gt;
&amp;nbsp;above menu or -1 to exit the program&lt;br&gt;
&amp;gt; 1&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; please input the favorite beverage of person #1: choose 1, 2, 3 or 4 from=&lt;br&gt;
&amp;nbsp;above menu or -1 to exit the program&lt;br&gt;
&amp;gt; -1&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; the total number of people surveyed is 5. The results are as follows:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Beverage Number of votes&lt;br&gt;
&amp;gt; ***********************************************&lt;br&gt;
&amp;gt; coffee 3&lt;br&gt;
&amp;gt; tea 0&lt;br&gt;
&amp;gt; coke 1&lt;br&gt;
&amp;gt; orange juice 1&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; how is it that i write this program please may i get some help&lt;br&gt;
&amp;gt; NEED SUM 1 TO SHOW ME HOW ITS WRITTEN PLEASE!!!&lt;br&gt;
&lt;br&gt;
------------------------------------------------------------------&lt;br&gt;
fada:&lt;br&gt;
Type this on the MATLAB command line:&lt;br&gt;
&amp;gt;&amp;gt; doc questdlg&lt;br&gt;
Get their input string, convert it to a number, and use that number as&lt;br&gt;
the index to a 1 by 4 array that contains the number of responses for&lt;br&gt;
the various beverages.&lt;br&gt;
Next time choose a better subject line and get an earlier start on&lt;br&gt;
your homework so that it is not so urgent.&lt;br&gt;
Good luck,&lt;br&gt;
ImageAnalyst</description>
    </item>
  </channel>
</rss>

