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

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

?? exe1.html

?? 卡耐基課程練習(xí)
?? HTML
字號:
<span class="dialogueheader">Take Assessment: Exercise 1</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="657678" 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:48:17 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:48:17 GMT+0800.</td>  <td width="5"><br></td></tr></tbody></table>

<a name="top_13829"></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="#13829">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 042903 ici -->

<h2 align="center"><cite>Shopping Cart Application</cite></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>Java Language</em> 
      <ul>
        <li>Knowledge of Java control structures</li>

      </ul>
    </li><li><i>Java API</i> 
      <ul>
        <li>Knowledge of package <code>java.io</code> 
          <ul>
            <li>How to get input from the keyboard</li>
            <li>How to output results, prompts, and errors</li>

          </ul>
        </li>
        <li>Knowledge of wrapper class <code>Integer</code>: how to read an integer 
          value as input</li>
        <li>Knowledge of class <code>StringTokenizer</code>: how to parse a line 
          with multiple values</li>
      </ul>
    </li><li> <i>Exception Objects</i> 
      <ul>

        <li>Knowledge of exception handling</li>
        <li>Knowledge of <code>NumberFormatException</code></li>
      </ul>
    </li><li><i>Programming Practice</i> 
      <ul>
        <li>How to produce Java applications</li>
        <li>Knowledge of Sun's code conventions</li>

      </ul>
      <ul>
        <li>Knowledge of Javadoc: how to document classes, methods, and variables</li>
      </ul>
  </li></ul>
  <p> <b><i>Goals:</i></b> Reinforce your ability to use I/O classes, tokenizers, 
    wrapper classes, and exceptions 
  </p><p> <b><i></i></b><b><i>Outcomes:</i></b> You will demonstrate mastery in the 
    following: 
  </p><ul>

    <li> Produce an application that reads input from the keyboard and uses: 
      <ul>
        <li>Wrapper classes to read numerical data</li>
        <li><code>StringTokenizer</code> to parse a line with multiple values</li>
        <li> Exceptions to handle malformed data</li>
        <li>Control structures to control the reading of data</li>

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

<h3>Background </h3>
<p>This assignment asks you to complete an application that adds products to an 
  electronic shopping cart. The application uses three classes: <code>Product</code>, 
  <code>ShoppingCart</code>, and <code>ShoppingCartApplication</code>. Part of 
  the work has been done for you and is provided in the student archive. You will 
  implement the method in <code>ShoppingCartApplication</code> that reads product 
  information from the keyboard and creates a <code>Product</code> object.</p>

<h3>Description</h3>

<p> The application presents the user with a menu of options and prompts the user 
  for a choice:</p>
<ul>
  <li>Choice 0 terminates the program.</li>
  <li>Choice 1 adds a product to the shopping cart<cite></cite>.</li>
  <li>Choice 2 displays the information of all the products stored in the shopping 
    cart.</li>

  <li>Choice 3 displays the total cost of all the products in the shopping cart<cite></cite>.</li>
</ul>
<p>To add a product, the user enters a line with the following format:</p>

<blockquote> <em>name_quntity_price</em> </blockquote>

<p>Where:</p>
<ul>
  <li><em>name</em> is the name of the product.</li>

  <li><em>quantity</em> is the quantity of the product.</li>
  <li><em>price</em> is the price of the product.</li>
</ul>
<p>The fields are delimited by an underscore ( <code>_</code> ). If the user's 
  input is invalid, the application displays an error message.</p>

<p>The following is a screen shot of the application after some products have 
  been added.</p>
<blockquote> 
  <table border="0" cellpadding="2" cellspacing="2" width="24%">
    <tbody><tr> 
      <td><img src="/content/SSD/SSD3/4.2.0.1/normal/pg-class-dsgn/pg-java-apps/assm-exer-read-obj-data/pool-pr-apps-io-tokenzr-excptns/qn-pr-shopping-cart/handout/images/shopping-cart-execution.jpg" alt="Figure 1 Execution of ShoppingCartApplication" height="305" width="405"></td>
    </tr>
    <tr> 
      <td><strong>Figure 1</strong><em> Execution of ShoppingCartApplication</em></td>
    </tr>

  </tbody></table></blockquote>  
  
<p>The application uses classes <code>Product</code> and <code>ShoppingCart</code>. 
  <code>ShoppingCart</code> maintains a collection of products. Complete implementations 
  of both are provided in the student archive <cite><a href="/content/SSD/SSD3/4.2.0.1/normal/pg-class-dsgn/pg-java-apps/assm-exer-read-obj-data/pool-pr-apps-io-tokenzr-excptns/qn-pr-shopping-cart/handout/student-files.zip"><code>student-files.zip</code></a></cite>. 
  Review their documentation and become familiar with it. </p>
<ul>
  <li><a href="/content/SSD/SSD3/4.2.0.1/normal/pg-class-dsgn/pg-java-apps/assm-exer-read-obj-data/pool-pr-apps-io-tokenzr-excptns/qn-pr-shopping-cart/handout/Product.html" target="externalWindow"><code><em>Product</em></code></a>. 
    Documentation for class <code>Product</code></li>

  <li><a href="/content/SSD/SSD3/4.2.0.1/normal/pg-class-dsgn/pg-java-apps/assm-exer-read-obj-data/pool-pr-apps-io-tokenzr-excptns/qn-pr-shopping-cart/handout/ShoppingCart.html" target="externalWindow"><code><em>ShoppingCart</em></code></a>. 
    Documentation for class <code>ShoppingCart</code></li>
</ul>

<p>A partial implement of <code>ShoppingCartApplication</code> is provided in 
  the student archive <cite><a href="/content/SSD/SSD3/4.2.0.1/normal/pg-class-dsgn/pg-java-apps/assm-exer-read-obj-data/pool-pr-apps-io-tokenzr-excptns/qn-pr-shopping-cart/handout/student-files.zip"><code>student-files.zip</code></a></cite>. 
  It contains some variables declarations and three methods that need no modification. 
  You should complete method <code>readProduct</code>, the method that reads product 
  information from the keyboard and returns a <code>Product</code> object.</p>

<h3>Files</h3>
The following files are needed to complete this assignment: 
<ul>
  <li><a href="/content/SSD/SSD3/4.2.0.1/normal/pg-class-dsgn/pg-java-apps/assm-exer-read-obj-data/pool-pr-apps-io-tokenzr-excptns/qn-pr-shopping-cart/handout/exe-shopping-cart.jar"><code><cite>exe-shopping-cart.jar</cite></code></a>. 
    Download this file. It is the sample executable.</li>
  <li> <cite><a href="/content/SSD/SSD3/4.2.0.1/normal/pg-class-dsgn/pg-java-apps/assm-exer-read-obj-data/pool-pr-apps-io-tokenzr-excptns/qn-pr-shopping-cart/handout/student-files.zip"><code>student-files.zip</code></a></cite>. 
    Download this file. This archive contains the following:</li>
  <ul>
    <li><cite><code>Product.class</code></cite>. A complete implementation</li>

    <li> <cite><code>ShoppingCart.class</code></cite>. A complete implementation</li>
    <li><cite><code>Product.html</code></cite>. Documentation</li>
    <li> <cite><code>ShoppingCart.html</code></cite>. Documentation</li>
    <li><cite><code>ShoppingCartApplication.java</code></cite> — Use this 
      template to complete your implementation.</li>

  </ul>
</ul>


<h3>Tasks</h3>


  
<p>To complete this assignment, you will finish the implementation of class <code>ShoppingCartApplication</code>. 
  The following steps will guide you through this assignment. Document using Javadoc 
  and follow Sun's code conventions. Work incrementally and test each increment. 
  Save often. </p>
<ol>
  <li><strong>Extract</strong> the student archive by issuing the following command 
    at the command prompt: 
    <blockquote><tt>C:\&gt;</tt><kbd>unzip student-files.zip</kbd></blockquote>

  </li>
</ol>
<ol start="2">
  <li><strong>Run</strong> the sample executable by issuing the following command 
    at the command prompt: 
    <blockquote><tt>C:\&gt;</tt><kbd>java -jar exe-shopping-cart.jar</kbd> </blockquote>
    <p>Observe how the program responds to the following types of input:</p>
    <ul>

      <li> Input with a quantity that is not a valid integer: <kbd>MP3 Player_1.0_150.0</kbd></li>
      <li> Input with a price that is not a valid double: <kbd></kbd><kbd>MP3 
        Player_1_A</kbd>.</li>
      <li>Input that contains negative numbers: <kbd>MP3 Player_-1_150.0</kbd>, 
        or <kbd>MP3 Player_1_-150.0</kbd>.</li>

      <li>Input that contains more than three values: <kbd>MP3 Player_1_150.0_1</kbd>.</li>
      <li>Input that contains fewer than three values: <kbd>MP3 Player_1</kbd>.</li>
      <li>Valid input: <kbd>MP3 Player_1_150.0</kbd>, and <kbd>CD Walkman_2_48.75</kbd>.</li>

    </ul>
  </li>
</ol>
<ol start="2">
  <li> <strong>Then</strong>, complete method <code>readProduct</code>: </li>
</ol>
<ul>
  <li><code><em>private Product readProduct() throws IOException</em></code>. 
    This<code></code> method prompts the user for input, reads product information 
    from the keyboard, and creates an instance of class <code>Product</code>. 
    The product information should consist of three values, all entered on the 
    same line, and delimited by an underscore ( <code>_</code> ). The first value 
    should be a non-empty string that represents the name of the product. The 
    second value should be a positive integer that represents the quantity of 
    product. The third value should be a positive double that represents the price. 
    Use <a href="http://java.sun.com/j2se/1.5/docs/api/java/util/StringTokenizer.html" target="externalWindow">java.util.StringTokenizer</a> 
    to extract the three values from the input. </li>

</ul>
<blockquote>
  <p><code>readProduct</code> validates the user's input:</p>
</blockquote>
<ol>
  <blockquote> 
    <ul>
      <li>If the user enters more than three values, an error message is displayed.</li>
      <li>If the user enters fewer than three values, an error message is displayed.</li>

      <li>If the user enters a quantity that is not a valid integer, <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/NumberFormatException.html" target="externalWindow">java.lang.NumberFormatException</a> 
        is caught and output.</li>
      <li>If the user enters a price that is not a valid double, <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/NumberFormatException.html" target="externalWindow">java.lang.NumberFormatException</a> 
        is caught and output.</li>
      <li> If the user enters a quantity that is negative or zero, an error message 
        is displayed.</li>
      <li>If the user enters a price that is negative, an error message 
        is displayed.</li>

    </ul>
  </blockquote>
</ol>
<blockquote> 
  <p>The error messages displayed by your implementation should match the error 
    messages displayed by the sample executable.</p>
  <p>If the input is invalid, <code>readProduct</code> re-prompts the user for 
    new input. Otherwise, it creates a new <code>Product</code> object using the 
    specified name, quantity, and price and returns a reference to the new object 
    to the calling method. </p>

</blockquote>
<h3>Submission</h3>
<p>Upon completion, submit <strong>only</strong> the following:</p>
<ol>
  <li><code><cite>ShoppingCartApplication.java</cite></code></li>
</ol>
<p><code><cite><img src="/content/SSD/SSD3/4.2.0.1/normal/pg-class-dsgn/pg-java-apps/assm-exer-read-obj-data/pool-pr-apps-io-tokenzr-excptns/qn-pr-shopping-cart/handout/resources/inherit.gif" height="1" width="1"></cite></code></p>
 </td>
<td width="5"><br></td></tr></tbody></table>

<a name="13829"></a><table><tbody><tr>
<td width="5"><br></td>  <td class="td0_x" align="left" valign="top"> <a href="#top_13829">Go to top of question.</a> </td>
<td width="5"><br></td></tr></tbody></table>
<hr><table><tbody><tr>
<td width="5"><br></td>  <td class="td0_x" align="left" valign="top"><label class="lbl0-x" for="file_to_add_13829">File to submit:</label><br> <input class="x" name="file_to_add_13829" value="" size="20" maxlength="500" type="file"> </td>
<td width="5"><br></td><td valign="bottom">  <input class="x" value="Upload File" name="add_file" id="add_file" style="width: 12em;" onclick='return SetUploadTime("https://seqcc.icarnegie.com:443/takeassmcmd.php?question_id=13829", 13829, false)' type="submit"></td><td width="5"><br></td></tr></tbody></table>
<hr><input name="pr_state_13829" id="pr_state_13829" value="a:2:{i:0;s:10:&quot;incomplete&quot;;i:1;a:0:{}}" type="hidden"><table><tbody><tr>
  </tr></tbody></table>

<input name="max_mins_per_try" id="max_mins_per_try" value="120" type="hidden">  <input value="2008-11-29 10:48:17 UTC" id="end_date" name="end_date" type="hidden">  <input value="421063" id="course_section_id" name="course_section_id" type="hidden">  <input value="13826" id="assm_id" name="assm_id" type="hidden">  <input value="657678" id="template_id" name="template_id" type="hidden">  <input value="657679" id="record_id" name="record_id" type="hidden">  <input value="" id="client_time" name="client_time" type="hidden"><table><tbody><tr>
<td width="5"><br></td>  <td class="td0_x" align="left" valign="top"> <a href="#top_of_page">Go to top of assessment.</a> </td>
  </tr></tbody></table>
<table><tbody><tr>
<td width="5"><br></td>  <td class="td0_copyright" align="left" valign="top"> ? Copyright 2006 iCarnegie, Inc.  All rights reserved. </td>

</tr></tbody></table>
</form>


?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色婷婷亚洲精品| 欧美美女激情18p| 欧美日韩一区三区| 中文av一区特黄| 久久国产精品72免费观看| 色乱码一区二区三区88 | 国产黄色精品视频| 欧美一区二区三区影视| 亚洲精品五月天| www.色综合.com| 国产亚洲美州欧州综合国| 奇米在线7777在线精品| 欧美性猛交xxxx黑人交| 国产精品色哟哟网站| 国产一区三区三区| 欧美不卡视频一区| 人人狠狠综合久久亚洲| 欧美情侣在线播放| 亚洲成人动漫av| 欧美色中文字幕| 亚洲高清视频中文字幕| 精品亚洲免费视频| 日韩精品一区二区三区中文精品| 一区二区日韩av| 一区二区三区四区在线播放| 99精品偷自拍| 精品国产91洋老外米糕| 国产精品一线二线三线精华| 69成人精品免费视频| 欧美午夜精品免费| 久久先锋影音av| 婷婷一区二区三区| 色婷婷狠狠综合| 日韩美女视频一区二区| 国产伦精品一区二区三区免费迷 | 欧美一级xxx| 依依成人精品视频| 欧美午夜片在线看| 久久影音资源网| 国产成人免费xxxxxxxx| 国产精品久久久久毛片软件| 国产不卡在线播放| 精品女同一区二区| 精品日韩一区二区三区 | 欧美裸体一区二区三区| 久久综合五月天婷婷伊人| 日韩成人免费看| 久久久天堂av| 首页综合国产亚洲丝袜| 91精品视频网| 日韩精品成人一区二区三区| 青青草视频一区| 日韩中文字幕一区二区三区| a4yy欧美一区二区三区| www.欧美.com| 成人精品免费看| 欧美国产精品一区二区三区| 亚洲综合一二三区| 日韩精品中文字幕一区二区三区 | 色综合天天综合狠狠| 激情六月婷婷综合| 亚洲国产成人午夜在线一区 | 久久亚洲综合色一区二区三区| 美女mm1313爽爽久久久蜜臀| 一区二区成人在线| 日本一二三不卡| 亚洲成人av电影在线| 91亚洲精品乱码久久久久久蜜桃| 亚洲日本在线观看| 国产精品亚洲视频| 国产精品美女一区二区在线观看| 在线一区二区三区四区五区| 韩日精品视频一区| 亚洲综合在线视频| 2024国产精品| 亚洲高清视频在线| 8v天堂国产在线一区二区| 国精产品一区一区三区mba桃花| 国产黄色精品网站| 精品一区二区精品| 国产一区二区三区美女| 天天操天天干天天综合网| 久久免费视频一区| 一区二区在线观看视频在线观看| 2021久久国产精品不只是精品| 欧美区视频在线观看| 亚洲精品国产高清久久伦理二区| 日韩亚洲国产中文字幕欧美| 亚洲一区免费在线观看| 久久久三级国产网站| 91精品综合久久久久久| 国产传媒欧美日韩成人| 色狠狠一区二区| 国产精品久久久久婷婷| 国产成人在线看| 免费观看在线色综合| 亚洲国产日韩a在线播放性色| 毛片一区二区三区| 91精品国产91久久久久久最新毛片 | 欧美日本视频在线| 精品一区二区三区的国产在线播放| 欧美一级电影网站| 色婷婷精品久久二区二区蜜臂av | 国产精品第四页| 色素色在线综合| 99re66热这里只有精品3直播| 日韩欧美高清dvd碟片| 韩国三级在线一区| 午夜久久电影网| 久久久91精品国产一区二区三区| 久久精品亚洲精品国产欧美| 国产成人午夜高潮毛片| 国产欧美一区视频| 亚洲色欲色欲www| 在线免费观看日本一区| 亚洲美女淫视频| 国产午夜精品久久久久久久| 69久久夜色精品国产69蝌蚪网| 日本美女一区二区三区| 欧美色中文字幕| 东方欧美亚洲色图在线| 国产乱码精品一区二区三区忘忧草| 精品一区二区三区久久久| 国产精品99久久久久久宅男| 精品国产91久久久久久久妲己| 高清在线观看日韩| 99精品国产视频| 欧美大片免费久久精品三p| 日韩欧美另类在线| 一区二区三区国产精华| 午夜一区二区三区视频| 国产三级精品在线| 91麻豆精品国产91久久久资源速度 | 美女视频黄 久久| 国产精品久久久久7777按摩| 日韩免费性生活视频播放| 久久亚洲精精品中文字幕早川悠里 | 亚洲黄色小说网站| 中文字幕综合网| 亚洲理论在线观看| 欧美日韩高清影院| 日韩免费一区二区三区在线播放| 99久久精品情趣| 在线视频一区二区免费| 91免费观看视频| 欧美aaaaa成人免费观看视频| 日韩电影网1区2区| 亚洲黄色小视频| 国产主播一区二区三区| 欧美综合一区二区| 另类小说视频一区二区| 日韩欧美国产三级电影视频| 日韩中文字幕1| 欧美图区在线视频| 亚洲午夜精品在线| 99久久精品久久久久久清纯| 国产99精品在线观看| 精品国产一区二区精华| 在线播放欧美女士性生活| 91精品国产一区二区| 午夜视频久久久久久| 五月天亚洲婷婷| 欧美日韩免费观看一区二区三区 | 久久久久一区二区三区四区| 亚洲欧洲日韩综合一区二区| 蜜桃av一区二区三区| 成人av动漫在线| 亚洲精品在线网站| 亚洲图片欧美综合| 成人黄色av电影| 7777精品伊人久久久大香线蕉的 | 奇米精品一区二区三区在线观看一 | 日韩成人免费电影| 91在线免费播放| 国产喂奶挤奶一区二区三区| 日本欧美肥老太交大片| 欧美在线你懂得| 亚洲欧美国产三级| 成人免费高清视频在线观看| 欧美成人综合网站| 三级亚洲高清视频| 欧美在线不卡视频| 亚洲黄色性网站| 日本韩国一区二区三区| 国产精品国产三级国产三级人妇| 麻豆精品视频在线观看视频| 国产电影一区在线| 精品国产区一区| 精品一区二区三区免费观看| 欧美日韩国产大片| 午夜精品久久久久久久久| 色综合天天性综合| 亚洲欧洲综合另类在线| 91在线你懂得| 一区二区三区四区不卡视频 | 欧美一级日韩不卡播放免费| 亚洲无人区一区| 欧美人妇做爰xxxⅹ性高电影| 亚洲国产一区二区三区| 欧美三级资源在线|