<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Arrays of Records' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Arrays of Records' posted on the 'Pascal' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 00:49:55 -0700</pubDate>
    <lastBuildDate>Sat, 25 May 2013 00:49:55 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Arrays of Records</title>
      <link>http://www.programmersheaven.com/mb/pasprog/428797/428797/arrays-of-records/</link>
      <description>I cannot get the program to continue past If (choice=5), the program stops there and refuses to calculate the other segement. Any advice would be appreciated.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Program program;&lt;br /&gt;
Uses Wincrt;&lt;br /&gt;
TYPE&lt;br /&gt;
    Band_Reports=Record&lt;br /&gt;
    Masquaraders:string;&lt;br /&gt;
          People:integer;&lt;br /&gt;
            Cost:integer;&lt;br /&gt;
      Income_Sum:integer;&lt;br /&gt;
    End;&lt;br /&gt;
    Band=Array [1..5]of Band_Reports;&lt;br /&gt;
VAR&lt;br /&gt;
   B:Band;&lt;br /&gt;
   x,choice:integer;&lt;br /&gt;
Begin&lt;br /&gt;
     B[1].People:=0;&lt;br /&gt;
     B[2].People:=0;&lt;br /&gt;
     B[3].People:=0;&lt;br /&gt;
     B[4].People:=0;&lt;br /&gt;
     B[5].People:=0;&lt;br /&gt;
     For x:= 1 to 5 Do&lt;br /&gt;
     Begin&lt;br /&gt;
          Write('Enter masquarader name:');&lt;br /&gt;
          Readln(B[x].Masquaraders);&lt;br /&gt;
     Writeln('1.Barbados-$160');&lt;br /&gt;
     Writeln('2.Miami-$220');&lt;br /&gt;
     Writeln('3.St.Lucia-$280');&lt;br /&gt;
     Writeln('4.Brazil-$350');&lt;br /&gt;
     Writeln('5.Trinidad-$425');&lt;br /&gt;
     Repeat&lt;br /&gt;
           Write('Enter choice:');&lt;br /&gt;
           Readln(choice);&lt;br /&gt;
     Until (choice&amp;gt;=1)AND(choice&amp;lt;=5);&lt;br /&gt;
     If (choice=1) then&lt;br /&gt;
     Begin&lt;br /&gt;
          Writeln('Section: Barbados');&lt;br /&gt;
          B[1].Cost:=$160;&lt;br /&gt;
          B[1].People:=B[1].People+1;&lt;br /&gt;
     End;&lt;br /&gt;
     If (choice=2) then&lt;br /&gt;
     Begin&lt;br /&gt;
          Writeln('Section: Miami');&lt;br /&gt;
          B[2].Cost:=$220;&lt;br /&gt;
          B[2].People:=B[2].People+1;&lt;br /&gt;
     End;&lt;br /&gt;
     If (choice=3) then&lt;br /&gt;
     Begin&lt;br /&gt;
          Writeln('Section: St.Lucia');&lt;br /&gt;
          B[3].Cost:=$280;&lt;br /&gt;
          B[3].People:=B[3].People+1;&lt;br /&gt;
     End;&lt;br /&gt;
     If (choice=4) then&lt;br /&gt;
     Begin&lt;br /&gt;
          Writeln('Section: Brazil');&lt;br /&gt;
          B[4].Cost:=$350;&lt;br /&gt;
          B[4].People:=B[4].People+1;&lt;br /&gt;
     End;&lt;br /&gt;
     If (choice=5) then&lt;br /&gt;
     Begin&lt;br /&gt;
          Writeln('Section: Trinidad');&lt;br /&gt;
          B[5].Cost:=$425;&lt;br /&gt;
          B[5].People:=B[5].People+1;&lt;br /&gt;
     End;&lt;br /&gt;
     If (B[1].Cost=160) then&lt;br /&gt;
          Begin&lt;br /&gt;
               Writeln;&lt;br /&gt;
               Writeln;&lt;br /&gt;
               Writeln('Section:Barbados');&lt;br /&gt;
               Writeln;&lt;br /&gt;
               Writeln('Name of Masquarader:',B[x].Masquaraders);&lt;br /&gt;
               Writeln('Number of Maquaraders:',B[1].People);&lt;br /&gt;
               B[1].Income_Sum:= B[1].People*B[1].Cost;&lt;br /&gt;
               Writeln('Total income for Barbados=$',B[1].Income_Sum);&lt;br /&gt;
          End;&lt;br /&gt;
     End;&lt;br /&gt;
     readkey&lt;br /&gt;
End.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/428797/428797/arrays-of-records/</guid>
      <pubDate>Thu, 14 Jun 2012 19:13:07 -0700</pubDate>
      <category>Pascal</category>
    </item>
  </channel>
</rss>