亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? exe5.html

?? 卡耐基課程練習(xí)
?? HTML
?? 第 1 頁 / 共 2 頁
字號:
<span class="dialogueheader">Take Assessment: Exercise 5</span><br><br>
  <form name="Assm" id="Assm" method="post" action="https://seqcc.icarnegie.com:443/submitassmcmd.php" enctype="multipart/form-data">

<a name="top_of_page"></a><input name="object_id" id="object_id" value="657817" type="hidden"><table><tbody><tr>
  </tr></tbody></table>
<table><tbody><tr>
<td width="5"><br></td>  <td class="td0_instructions" align="left" valign="top">
     <label class="instructions">Please answer the following question(s).<br>
If the assessment includes multiple-choice questions, click the "Submit Answers" button when you have completed those questions.</label></td>
</tr></tbody></table>
<input name="MAX_FILE_SIZE" id="MAX_FILE_SIZE" value="512000" type="hidden"><table><tbody><tr>
<td width="5"><br></td><script language="JavaScript">document.write('<td class=instructions>' + 'You have 120 minutes to take this assessment.' + '<br>' + 'Please complete this assessment by ' + ComputeLocalDate('2008-11-29 10:56:22 UTC') + '.' + '</td>');</script><td class="instructions">You have 120 minutes to take this assessment.<br>Please complete this assessment by Sat Nov 29 2008 18:56:22 GMT+0800.</td>  <td width="5"><br></td></tr></tbody></table>

<a name="top_14555"></a><table><tbody><tr>
<td width="5"><br></td>  <td class="td0_highlight-label" align="right" nowrap="nowrap" valign="top" width="12">
     <label class="highlight-label">1.</label></td>
<td width="5"><br></td>  <td class="td0_x" align="left" valign="top"> <a href="#14555">Go to bottom of question.</a> </td>
</tr></tbody></table>
<table><tbody><tr>
<td width="5"><br></td>  <td class="td0_x" align="left" valign="top"> <!-- new pg 070103 ici --> 
<h2 align="center">Using Design Patterns in the Gourmet Coffee System</h2> 

<h3>Prerequisites, Goals, and Outcomes</h3>
<blockquote> <b><i>Prerequisites:</i></b> Before you begin this exercise, you 
  need mastery of the following: 
  <ul>
    <li> <em>Object-oriented Programming</em>
<ul>
        <li>How to define interfaces</li>
        <li>How to implement interfaces</li>

      </ul>
  </li></ul>
</blockquote>
<blockquote> 
  <ul>
    <li><em>Design Patterns</em>: 
      <ul>
        <li>Knowledge of the singleton pattern</li>
        <li>Knowledge of the strategy pattern</li>

      </ul>
    </li>
  </ul>
  <p> <b><i>Goals:</i></b> Reinforce your ability to use the singleton and strategy 
    patterns
</p><p> <b><i>Outcomes:</i></b> You 
    will demonstrate mastery in the following: 
  </p><ul>
    <li>Producing applications that use the singleton pattern</li>

    <li>Producing applications that use the strategy pattern</li>
  </ul>
</blockquote>
<h3>Background </h3>

<p>In this assignment, you will create another version of the <em>Gourmet Coffee System</em>. This version will  present the user with   four choices:</p>
<blockquote>
  <p>
    <tt>[0] Quit<br>

    [1] Display sales (Plain Text)<br>
    [2] Display sales (HTML)<br>
    [3] Display sales (XML)<br>
    choice&gt;</tt></p>
</blockquote>
<p>The user will be able to display the sales information in three
    formats:
    plain
    text, HTML, or XML. Part of the work has been done for you and is provided
  in the student archive. You will implement the code that formats the
  sales information. This code will use the singleton and strategy patterns. </p>
<h3>Description</h3>

<p>The following class diagram shows how the singleton and strategy pattern will 
  be used in your implementation:</p>
<blockquote> 
  <table border="0" cellpadding="2" cellspacing="2" width="75%">
    <tbody><tr> 
      <td><img src="/content/SSD/SSD3/4.2.0.1/normal/pg-class-imp/pg-adv-clss-dsgn/assm-exer-dsgn-ptrns/pool-pr-dsgn-ptrns/qn-pr-formtr-gou-sys/handout/images/formttr-cof-gou-sys.jpg" alt="Figure 1 Portion of Gourmet Coffee System class diagram" height="426" width="627"></td>
    </tr>
    <tr> 
      <td><strong>Figure 1 </strong><em>Portion of Gourmet Coffee System class diagram</em></td>
    </tr>
  </tbody></table>

</blockquote>
<p>The elements of the pattern are:</p>
<ul>
  <li>Interface <code>SalesFormatter</code> declares a method called <code>formatSales</code> 
    that produces a string representation of the sales information.</li>
  <li>Class <code>PlainTextSalesFormatter</code> implements <code>formatSales</code>. 
    Its version returns the sales information in a plain-text format. </li>

  <li>Class <code>HTMLSalesFormatter</code> implements <code>formatSales</code>. 
    Its version returns the sales information in an HTML format. </li>
  <li>Class <code>XMLSalesFormatter</code> implements <code>formatSales</code>. 
    Its version returns the sales information in an XML format. </li>
  <li>Class <code>GourmetCoffee</code> is the context class. It also contains 
    client code. The client code calls: 
    <ul>

      <li> Method <code>GourmetCoffee.setSalesFormatter</code> to change the 
        current formatter</li>
      <li>Method <code>GourmetCoffee.displaySales</code> to display the sales 
        information using the current formatter</li>
    </ul>
  </li>

</ul>
<p>In this assignment, you should implement the following interface and classes:</p>
<ul>
  <li><code>SalesFormatter</code></li>
  <li><code>PlainTextSalesFormatter</code></li>
  <li><code>HTMLSalesFormatter</code></li>
  <li><code>XMLSalesFormatter</code></li>
  <li><code>GourmetCoffee</code> (a partial implementation is provided in the student archive)</li>

</ul>
<p>Complete implementations of the following classes are provided in the
    student archive:</p>
<ul>
  <li><code>Coffee</code></li>
  <li><code>CoffeeBrewer</code></li>
  <li><code>Product</code></li>
  <li><code>Catalog</code></li>
  <li><code>OrderItem</code></li>

  <li><code>Order</code></li>
  <li><code>Sales</code></li>
</ul>
<h4>Interface <code>SalesFormatter</code></h4>
<p>Interface <code>SalesFormatter</code> declares the method that every "Formatter" 
  class will implement.</p>
<p><em>Method:</em></p>

<ul>
  <li> <code><em>public String formatSales(Sales sales)</em></code>. Produces 
    a string representation of the sales information.</li>
</ul>
<h4>Class <code>PlainTextSalesFormatter</code></h4>
<p>Class <code>PlainTextSalesFormatter</code> implements the interface <code>SalesFormatter</code>. 
  This class is implemented as a singleton so a new object will not be created 
  every time the plain-text format is used.</p>

<p><em>Static variable:</em></p>
<ul>
  <li><code><em>singletonInstance</em></code>. The single instance of class <code></code><code>PlainTextSalesFormatter</code>.</li>
</ul>
<p><em>Constructor and methods:</em></p>
<ul>
  <li> <code><em>static public PlainTextSalesFormatter getSingletonInstance()</em></code>. 
    Static method that obtains the single instance of class <code>PlainTextsalesFormatter</code>. 
  </li>

</ul>
<ul>
  <li> <code><em>private PlainTextSalesFormatter()</em></code>. Constructor that 
    is declared private so it is inaccessible to other classes. A private constructor 
    makes it impossible for any other class to create an instance of class <code>PlainTextSalesFormatter</code>.</li>
</ul>
<ul>
  <li> <code><em>public String formatSales(Sales sales)</em></code>. Produces 
    a string that contains the specified sales information in a plain-text format. 
    Each order in the sales information has the following format: 
    <pre>------------------------
Order <em>number</em>

<em>quantity1</em> <em>code1</em> <em>price1</em>
<em>quantity2</em> <em>code2</em> <em>price2</em>
...
<em>quantityN</em> <em>codeN</em> <em>priceN</em>

Total = <em>totalCost</em></pre>
    where 
    <ul>
      <li><em>number</em> is the order number.</li>
      <li><em>quantityX</em> is the quantity of the product.</li>

      <li><em>codeX</em> is the code of the product.</li>
      <li><em>priceX</em> is the price of the product.</li>
      <li><em>totalCost</em> is the total cost of the order.</li>
    </ul>

    <p>Each order should begin with a dashed line. The first order in the sales 
      information should be given an order number of 1, the second should be given 
      an order number of 2, and so on.</p>
  </li>
</ul>

<h4>Class <code>HTMLSalesFormatter</code></h4>
<p>Class <code>HTMLSalesFormatter</code> implements the interface <code>SalesFormatter</code>. 
  This class is implemented as a singleton so a new object will not be created 
  every time the HTML format is used.</p>

<p><em>Static variable:</em></p>
<ul>
  <li><code><em>singletonInstance</em></code>. The single instance of class <code></code><code>HTMLSalesFormatter</code>.</li>
</ul>
<p><em>Constructor and methods:</em></p>
<ul>
  <li> <code><em>static public HTMLSalesFormatter getSingletonInstance()</em></code>. 
    Static method that obtains the single instance of class <code>HTMLSalesFormatter</code>. 
  </li>

</ul>
<ul>
  <li> <code><em>private HTMLSalesFormatter()</em></code>. Constructor that is 
    declared private so it is inaccessible to other classes. A private constructor 
    makes it impossible for any other class to create an instance of class <code>HTMLSalesFormatter</code>.</li>
</ul>
<ul>
  <li> <code><em>public String formatSales(Sales sales)</em></code>. Produces 
    a string that contains the specified sales information in an HTML format. 
  </li>
</ul>

<blockquote> 
  <ul>
    <li>The string should begin with the following  HTML:    </li>
    <blockquote>
      <pre>&lt;html&gt;
  &lt;body&gt;
    &lt;center&gt;&lt;h2&gt;Orders&lt;/h2&gt;&lt;/center&gt;</pre>

    </blockquote>
    <li>Each order in the sales information should begin with horizontal
      line, that is, an <code>&lt;hr&gt;</code> 
    tag. </li>
    <li>Each order in the sales information should have the following
      format:
    </li>
  </ul>
  <blockquote>
    <pre>    &lt;hr&gt;

    &lt;h4&gt;Total = <em>totalCost</em>&lt;/h4&gt;
      &lt;p&gt;
        &lt;b&gt;code:&lt;/b&gt; <em>code</em>1&lt;br&gt;

        &lt;b&gt;quantity:&lt;/b&gt; <em>quantity</em>1&lt;br&gt;
        &lt;b&gt;price:&lt;/b&gt; <em>price</em>1
     &lt;/p&gt;

	  ...
     &lt;p&gt;
        &lt;b&gt;code:&lt;/b&gt; <em>codeN</em>&lt;br&gt;
        &lt;b&gt;quantity:&lt;/b&gt; <em>quantityN</em>&lt;br&gt;

        &lt;b&gt;price:&lt;/b&gt; <em>priceN</em>
     &lt;/p&gt;</pre>
    <p> where:</p>
  </blockquote>
  <ul>

    <ul>
      <li><em>quantityX</em> is the quantity of
        the product.</li>
      <li><em>codeX</em> is the code of the product.</li>
      <li><em>priceX</em> is the  price of the product.</li>

      <li><em>totalCost</em> is the total cost of the order.</li>
    </ul>
  </ul>
  <ul>
    <li>The string should end with the following HTML: 
      <blockquote>
        <pre>  &lt;/body&gt;<br>&lt;/html&gt;</pre>

      </blockquote>
    </li>
  </ul>
</blockquote>

<h4>Class <code>XMLSalesFormatter</code></h4>
<p>Class <code>XMLSalesFormatter</code> implements the interface <code>SalesFormatter</code>. 
  This class is implemented as a singleton so a new object will not be created 
  every time the XML format is used.</p>

<p><em>Static variable:</em></p>
<ul>
  <li><code><em>singletonInstance</em></code>. The single instance of class <code></code><code>XMLSalesFormatter</code>.</li>
</ul>
<p><em>Constructor and methods:</em></p>
<ul>
  <li> <code><em>static public XMLSalesFormatter getSingletonInstance()</em></code>. 
    Static method that obtains the single instance of class <code>XMLSalesFormatter</code>. 
  </li>

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
av激情综合网| 国产91对白在线观看九色| 欧美色图在线观看| 亚洲妇熟xx妇色黄| 91精品国产麻豆国产自产在线| 日韩在线一区二区三区| 日韩美女视频在线| 成人激情综合网站| 一区二区三区在线视频观看| 717成人午夜免费福利电影| 久久国产视频网| 国产精品情趣视频| 欧美三日本三级三级在线播放| 日韩精品亚洲一区| 久久视频一区二区| 色综合色狠狠综合色| 日本不卡中文字幕| 中国av一区二区三区| av一区二区三区| 蜜臀av一区二区三区| 中文字幕不卡的av| 欧美日韩成人综合| 日日夜夜精品视频免费| 国产在线看一区| 国产一区二区久久| 亚洲欧美在线高清| 欧美电视剧在线观看完整版| 中文字幕一区二区三区视频 | 91丨porny丨户外露出| 2020日本不卡一区二区视频| 99精品久久免费看蜜臀剧情介绍| 五月婷婷久久综合| 日本一区二区三区在线观看| 91国产成人在线| 国产精品一区二区91| 亚洲成人自拍一区| 亚洲欧洲另类国产综合| 日韩一区二区电影| 欧美午夜不卡视频| 成人免费va视频| 另类小说综合欧美亚洲| 一区二区三区 在线观看视频 | 欧美午夜宅男影院| 国产毛片精品国产一区二区三区| 亚洲国产一二三| 国产精品美女久久久久高潮| 日韩欧美不卡在线观看视频| 欧美在线色视频| 菠萝蜜视频在线观看一区| 天天操天天色综合| 亚洲黄色小说网站| 中文字幕制服丝袜一区二区三区| 日韩一区二区三区在线| 在线观看一区日韩| 99久久精品一区二区| 国产精品亚洲第一区在线暖暖韩国| 亚洲国产日韩av| 亚洲欧美在线视频观看| 久久九九影视网| 精品99一区二区三区| 欧美精品1区2区3区| 91九色02白丝porn| 91丝袜国产在线播放| 波多野结衣亚洲一区| 丁香激情综合五月| 国产91高潮流白浆在线麻豆| 国模冰冰炮一区二区| 激情国产一区二区| 久热成人在线视频| 免费成人深夜小野草| 天天综合日日夜夜精品| 日日夜夜一区二区| 日韩精品欧美成人高清一区二区| 亚洲国产日韩一区二区| 亚洲午夜激情网页| 亚洲va天堂va国产va久| 亚洲成av人综合在线观看| 亚洲一区二区三区四区在线免费观看| 一区二区三区中文在线观看| 亚洲精品中文在线影院| 日韩美女视频一区| 成人免费视频在线观看| 一区二区三区在线影院| 亚洲精品videosex极品| 亚洲资源在线观看| 亚洲成人午夜电影| 男人的j进女人的j一区| 久久99国产精品久久99| 韩国毛片一区二区三区| 国产高清在线精品| 成人免费的视频| 国产农村妇女精品| 中文字幕色av一区二区三区| 日韩一区在线免费观看| 夜夜揉揉日日人人青青一国产精品| 亚洲日本va午夜在线影院| 亚洲黄色录像片| 日韩av一区二区在线影视| 老司机精品视频一区二区三区| 国产一区二区三区黄视频 | 日日欢夜夜爽一区| 久久精品国产澳门| 国产成人av一区二区三区在线观看| 成人午夜激情片| 欧美亚洲一区二区三区四区| 91精品国产美女浴室洗澡无遮挡| 2024国产精品| 最新日韩av在线| 亚洲国产成人精品视频| 久久精品国产在热久久| a级精品国产片在线观看| 欧美视频中文一区二区三区在线观看| 欧美日韩精品是欧美日韩精品| 日韩欧美国产小视频| 中文字幕制服丝袜一区二区三区| 亚洲成人av一区二区| 精品一区二区三区免费毛片爱| 成人一二三区视频| 欧美日韩亚洲综合在线| 国产日韩欧美综合在线| 午夜国产精品一区| 高清成人在线观看| 欧美日韩成人在线| 国产精品免费视频网站| 亚洲高清三级视频| 成人毛片老司机大片| 欧美精品久久天天躁| 亚洲欧洲无码一区二区三区| 美脚の诱脚舐め脚责91| 色婷婷亚洲婷婷| 日本一区二区三区高清不卡| 日本中文字幕不卡| 色综合久久综合中文综合网| 久久综合九色综合97婷婷女人| 亚洲午夜精品久久久久久久久| 丁香桃色午夜亚洲一区二区三区| 欧美另类videos死尸| 欧美国产精品v| 精品一区二区三区在线观看| 欧美日韩一区高清| 国产精品日日摸夜夜摸av| 另类专区欧美蜜桃臀第一页| 欧美三级午夜理伦三级中视频| 国产亚洲欧洲一区高清在线观看| 亚洲国产精品麻豆| 99精品欧美一区二区三区小说| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 蜜臀av一区二区| 欧美日韩一区二区三区高清| 中文字幕欧美三区| 国产精品一线二线三线| 日韩视频一区二区在线观看| 亚洲小少妇裸体bbw| 91丨porny丨国产| 国产精品丝袜在线| 国产成人午夜99999| 2022国产精品视频| 美女视频免费一区| 日韩一区二区不卡| 日本不卡视频在线| 制服丝袜av成人在线看| 亚洲成人在线观看视频| 欧美视频一区二区在线观看| 成人欧美一区二区三区在线播放| 成人网在线免费视频| 国产区在线观看成人精品| 国产一区二区不卡老阿姨| 欧美成人精品福利| 久久不见久久见免费视频7| 欧美一区二区播放| 美女尤物国产一区| 欧美电影免费观看高清完整版在| 蜜臀av性久久久久蜜臀av麻豆| 欧美精品免费视频| 免费xxxx性欧美18vr| 日韩欧美国产精品一区| 国产一区欧美日韩| 欧美激情综合在线| 色哟哟一区二区三区| 亚洲在线一区二区三区| 欧美日韩国产首页在线观看| 日本视频一区二区三区| 精品久久一区二区三区| 国产美女视频91| 国产精品乱码一区二区三区软件| av男人天堂一区| 亚洲一区二区四区蜜桃| 91精品国产综合久久精品app| 九一久久久久久| 欧美激情一区二区| 欧美亚洲精品一区| 免费成人小视频| 国产欧美日韩久久| 91久久国产最好的精华液| 日韩成人av影视| 国产欧美日韩综合| 欧美制服丝袜第一页| 狠狠色综合播放一区二区| 国产精品美女久久久久aⅴ| 欧美色网一区二区|