<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Maximum value in results' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Maximum value in results' posted on the 'Pascal' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 17:58:40 -0700</pubDate>
    <lastBuildDate>Sat, 25 May 2013 17:58:40 -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>Maximum value in results</title>
      <link>http://www.programmersheaven.com/mb/pasprog/427240/427240/maximum-value-in-results/</link>
      <description>Hi, I'm looking for with some pascal code.  I have to make a  program which allows you to input a name and an amount four times. Then it is supposed to output the name, three percentages of the amount and the maximum of one of the percentage out of the four outputted results. can any one help? This is what I have so far:&lt;br /&gt;
&lt;br /&gt;
program grocery;&lt;br /&gt;
uses wincrt;&lt;br /&gt;
var&lt;br /&gt;
Name:Array[1..4] of String;&lt;br /&gt;
Amount:Array[1..4] of longint;&lt;br /&gt;
i:Integer;&lt;br /&gt;
B_sector,L_sector,V_sector:double;&lt;br /&gt;
Begin&lt;br /&gt;
For i:=1 to 4 do&lt;br /&gt;
Begin;&lt;br /&gt;
Writeln('Enter Organisation Name');&lt;br /&gt;
Readln(Name[i]);&lt;br /&gt;
Writeln('Enter the amount');&lt;br /&gt;
Readln(Amount[i]);&lt;br /&gt;
B_sector:=(Amount[i])*40/100;&lt;br /&gt;
V_sector:=(Amount[i])*25/100 ;&lt;br /&gt;
L_sector:=(Amount[i])*35/100  ;&lt;br /&gt;
Writeln(Name[i]);&lt;br /&gt;
Writeln(B_sector:2:1);&lt;br /&gt;
Writeln(V_sector:2:1);&lt;br /&gt;
Writeln(L_sector:2:1);&lt;br /&gt;
&lt;br /&gt;
End;&lt;br /&gt;
&lt;br /&gt;
End.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/427240/427240/maximum-value-in-results/</guid>
      <pubDate>Sun, 05 Feb 2012 08:31:54 -0700</pubDate>
      <category>Pascal</category>
    </item>
  </channel>
</rss>