<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://trans.onionmixer.net/wiki/index.php?action=history&amp;feed=atom&amp;title=StartprogrammingusingObjectPascal%3ARestaurantProgramUsingFunctions</id>
	<title>StartprogrammingusingObjectPascal:RestaurantProgramUsingFunctions - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://trans.onionmixer.net/wiki/index.php?action=history&amp;feed=atom&amp;title=StartprogrammingusingObjectPascal%3ARestaurantProgramUsingFunctions"/>
	<link rel="alternate" type="text/html" href="https://trans.onionmixer.net/wiki/index.php?title=StartprogrammingusingObjectPascal:RestaurantProgramUsingFunctions&amp;action=history"/>
	<updated>2026-05-01T07:47:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>https://trans.onionmixer.net/wiki/index.php?title=StartprogrammingusingObjectPascal:RestaurantProgramUsingFunctions&amp;diff=306&amp;oldid=prev</id>
		<title>Onionmixer: 오류수정</title>
		<link rel="alternate" type="text/html" href="https://trans.onionmixer.net/wiki/index.php?title=StartprogrammingusingObjectPascal:RestaurantProgramUsingFunctions&amp;diff=306&amp;oldid=prev"/>
		<updated>2013-04-04T11:36:27Z</updated>

		<summary type="html">&lt;p&gt;오류수정&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:36, 4 April 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot;&gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;begin&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;begin&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     Writeln(&amp;#039;Welcome to Pascal Restaurant. Please select your order&amp;#039;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     Writeln(&amp;#039;Welcome to Pascal Restaurant. Please select your order&amp;#039;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     Writeln(&#039;1 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;– &lt;/del&gt;Chicken          (10$)&#039;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     Writeln(&#039;1 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;- &lt;/ins&gt;Chicken          (10$)&#039;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     Writeln(&#039;2 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;– &lt;/del&gt;Fish                  (7$)&#039;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     Writeln(&#039;2 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;- &lt;/ins&gt;Fish                  (7$)&#039;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     Writeln(&#039;3 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;– &lt;/del&gt;Meat                (8$)&#039;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     Writeln(&#039;3 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;- &lt;/ins&gt;Meat                (8$)&#039;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     Writeln(&amp;#039;4 - Salad               (2$)&amp;#039;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     Writeln(&amp;#039;4 - Salad               (2$)&amp;#039;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     Writeln(&amp;#039;5 - Orange Juice (1$)&amp;#039;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     Writeln(&amp;#039;5 - Orange Juice (1$)&amp;#039;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     Writeln(&#039;6 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;– &lt;/del&gt;Milk                  (1$)&#039;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     Writeln(&#039;6 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;- &lt;/ins&gt;Milk                  (1$)&#039;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     Writeln;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     Writeln;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Onionmixer</name></author>
	</entry>
	<entry>
		<id>https://trans.onionmixer.net/wiki/index.php?title=StartprogrammingusingObjectPascal:RestaurantProgramUsingFunctions&amp;diff=305&amp;oldid=prev</id>
		<title>Onionmixer: 오류수정</title>
		<link rel="alternate" type="text/html" href="https://trans.onionmixer.net/wiki/index.php?title=StartprogrammingusingObjectPascal:RestaurantProgramUsingFunctions&amp;diff=305&amp;oldid=prev"/>
		<updated>2013-04-04T11:00:15Z</updated>

		<summary type="html">&lt;p&gt;오류수정&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==함수를 사용한 음식점 프로그램==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
procedure Menu;&lt;br /&gt;
begin&lt;br /&gt;
    Writeln(&amp;#039;Welcome to Pascal Restaurant. Please select your order&amp;#039;);&lt;br /&gt;
    Writeln(&amp;#039;1 – Chicken          (10$)&amp;#039;);&lt;br /&gt;
    Writeln(&amp;#039;2 – Fish                  (7$)&amp;#039;);&lt;br /&gt;
    Writeln(&amp;#039;3 – Meat                (8$)&amp;#039;);&lt;br /&gt;
    Writeln(&amp;#039;4 - Salad               (2$)&amp;#039;);&lt;br /&gt;
    Writeln(&amp;#039;5 - Orange Juice (1$)&amp;#039;);&lt;br /&gt;
    Writeln(&amp;#039;6 – Milk                  (1$)&amp;#039;);&lt;br /&gt;
    Writeln;&lt;br /&gt;
end;&lt;br /&gt;
&lt;br /&gt;
function GetOrder(AName: string; Minutes, Price: Integer): Integer;&lt;br /&gt;
begin&lt;br /&gt;
    Writeln(&amp;#039;You have ordered : &amp;#039;, AName, &amp;#039;, this will take &amp;#039;,&lt;br /&gt;
         Minutes, &amp;#039; minutes&amp;#039;);&lt;br /&gt;
    Result := Price;&lt;br /&gt;
end;&lt;br /&gt;
&lt;br /&gt;
// Main application&lt;br /&gt;
var&lt;br /&gt;
    Selection: Char;&lt;br /&gt;
    Price: Integer;&lt;br /&gt;
    Total: Integer;&lt;br /&gt;
begin&lt;br /&gt;
    Total := 0;&lt;br /&gt;
    repeat&lt;br /&gt;
        Menu;&lt;br /&gt;
        Write(&amp;#039;Please enter your selection: &amp;#039;);&lt;br /&gt;
        Readln(Selection);&lt;br /&gt;
        case Selection of&lt;br /&gt;
            ‘1’: Price := GetOrder(&amp;#039;Chicken&amp;#039;, 15, 10);&lt;br /&gt;
            ‘2’: Price := GetOrder(&amp;#039;Fish&amp;#039;, 12, 7);&lt;br /&gt;
            ‘3’: Price := GetOrder(&amp;#039;Meat&amp;#039;, 18, 8);&lt;br /&gt;
            ‘4’: Price := GetOrder(&amp;#039;Salad&amp;#039;, 5, 2);&lt;br /&gt;
            ‘5’: Price := GetOrder(&amp;#039;Orange juice&amp;#039;, 2, 1);&lt;br /&gt;
            ‘6’: Price := GetOrder(&amp;#039;Milk&amp;#039;, 1, 1);&lt;br /&gt;
            ‘x’, ‘X’: Writeln(‘Thanks’);&lt;br /&gt;
            else&lt;br /&gt;
            begin&lt;br /&gt;
                Writeln(&amp;#039;Wrong entry&amp;#039;);&lt;br /&gt;
                Price:= 0;&lt;br /&gt;
            end;&lt;br /&gt;
        end;&lt;br /&gt;
&lt;br /&gt;
        Total := Total + Price;&lt;br /&gt;
    until (Selection = &amp;#039;x&amp;#039;) or (Selection = &amp;#039;X&amp;#039;);&lt;br /&gt;
    Writeln(&amp;#039;Total price                   = &amp;#039;,Total);&lt;br /&gt;
    Write(&amp;#039;Press enter key to close&amp;#039;);&lt;br /&gt;
    Readln;&lt;br /&gt;
end.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:StartprogrammingusingObjectPascal]]&lt;/div&gt;</summary>
		<author><name>Onionmixer</name></author>
	</entry>
	<entry>
		<id>https://trans.onionmixer.net/wiki/index.php?title=StartprogrammingusingObjectPascal:RestaurantProgramUsingFunctions&amp;diff=303&amp;oldid=prev</id>
		<title>Onionmixer: SPOP 함수를사용한식당프로그램 페이지 추가</title>
		<link rel="alternate" type="text/html" href="https://trans.onionmixer.net/wiki/index.php?title=StartprogrammingusingObjectPascal:RestaurantProgramUsingFunctions&amp;diff=303&amp;oldid=prev"/>
		<updated>2012-07-26T10:29:17Z</updated>

		<summary type="html">&lt;p&gt;SPOP 함수를사용한식당프로그램 페이지 추가&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===함수를 사용한 식당 프로그램===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
procedure Menu;&lt;br /&gt;
begin&lt;br /&gt;
    Writeln(&amp;#039;Welcome to Pascal Restaurant. Please select your order&amp;#039;);&lt;br /&gt;
    Writeln(&amp;#039;1 – Chicken          (10$)&amp;#039;);&lt;br /&gt;
    Writeln(&amp;#039;2 – Fish                  (7$)&amp;#039;);&lt;br /&gt;
    Writeln(&amp;#039;3 – Meat                (8$)&amp;#039;);&lt;br /&gt;
    Writeln(&amp;#039;4 - Salad               (2$)&amp;#039;);&lt;br /&gt;
    Writeln(&amp;#039;5 - Orange Juice (1$)&amp;#039;);&lt;br /&gt;
    Writeln(&amp;#039;6 – Milk                  (1$)&amp;#039;);&lt;br /&gt;
    Writeln;&lt;br /&gt;
end;&lt;br /&gt;
&lt;br /&gt;
function GetOrder(AName: string; Minutes, Price: Integer): Integer;&lt;br /&gt;
begin&lt;br /&gt;
    Writeln(&amp;#039;You have ordered : &amp;#039;, AName, &amp;#039;, this will take &amp;#039;,&lt;br /&gt;
         Minutes, &amp;#039; minutes&amp;#039;);&lt;br /&gt;
    Result := Price;&lt;br /&gt;
end;&lt;br /&gt;
&lt;br /&gt;
// Main application&lt;br /&gt;
var&lt;br /&gt;
    Selection: Char;&lt;br /&gt;
    Price: Integer;&lt;br /&gt;
    Total: Integer;&lt;br /&gt;
begin&lt;br /&gt;
    Total := 0;&lt;br /&gt;
    repeat&lt;br /&gt;
        Menu;&lt;br /&gt;
        Write(&amp;#039;Please enter your selection: &amp;#039;);&lt;br /&gt;
        Readln(Selection);&lt;br /&gt;
        case Selection of&lt;br /&gt;
            ‘1’: Price := GetOrder(&amp;#039;Chicken&amp;#039;, 15, 10);&lt;br /&gt;
            ‘2’: Price := GetOrder(&amp;#039;Fish&amp;#039;, 12, 7);&lt;br /&gt;
            ‘3’: Price := GetOrder(&amp;#039;Meat&amp;#039;, 18, 8);&lt;br /&gt;
            ‘4’: Price := GetOrder(&amp;#039;Salad&amp;#039;, 5, 2);&lt;br /&gt;
            ‘5’: Price := GetOrder(&amp;#039;Orange juice&amp;#039;, 2, 1);&lt;br /&gt;
            ‘6’: Price := GetOrder(&amp;#039;Milk&amp;#039;, 1, 1);&lt;br /&gt;
            ‘x’, ‘X’: Writeln(‘Thanks’);&lt;br /&gt;
            else&lt;br /&gt;
            begin&lt;br /&gt;
                Writeln(&amp;#039;Wrong entry&amp;#039;);&lt;br /&gt;
                Price:= 0;&lt;br /&gt;
            end;&lt;br /&gt;
        end;&lt;br /&gt;
&lt;br /&gt;
        Total := Total + Price;&lt;br /&gt;
    until (Selection = ‘x’) or (Selection = ‘X’);&lt;br /&gt;
    Writeln(‘Total price                   = ’,Total);&lt;br /&gt;
    Write(&amp;#039;Press enter key to close&amp;#039;);&lt;br /&gt;
    Readln;&lt;br /&gt;
end.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
[[Category:StartprogrammingusingObjectPascal]]&lt;/div&gt;</summary>
		<author><name>Onionmixer</name></author>
	</entry>
</feed>