⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 takeassmcmd[1].html

📁 ssd 3 exercise2 自己做的
💻 HTML
字号:
<html>
<head>
<link rel=stylesheet href="/css/cteform.css" type="text/css">
<title>Take Assessment: Exercise 2 &copy; 2002-2007 iCarnegie, Inc. - UI Version 3.19</title>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"><META HTTP-EQUIV="Expires" CONTENT="-1"><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"><script language="JavaScript" src="/js/cteform.js"></script>
<script language="JavaScript" src="/js/ctecoursespt.js"></script>
<script language="JavaScript" src="/js/cteajax.js"></script>
<script language="JavaScript">
function FetchReferencedContent(questionName, referencedName)
{
    var cmd =
	"https://www.icarnegie.com:443/fetchrefcontentcmd.php?id=12959222" + "&question_name=" + encodeURIComponent(questionName)
		       + "&name=" + encodeURIComponent(referencedName);

    var winName = questionName + referencedName.replace(/\./g, "_");

    window.open(cmd,
		winName.replace(/-/g, "_"),
		"height=600,width=700,toolbar=no,menubar=no,location=no,status=no,resizable,scrollbars").focus();
}

function ResetTarget()
{
    var f = document.forms["Assm"];
    f.target = "";
}

function SetUploadTime(targetCmd, questionId, enableReadyForGrading)
{
    var f = document.forms["Assm"];

    f.action = targetCmd;

    var elt = f.elements["client_time"];

    if (typeof(elt) != 'undefined') {
	var now = new Date();

	elt.value = CreateSortableDate(now.getUTCFullYear(),
				       now.getUTCMonth() + 1,
				       now.getUTCDate(),
				       now.getUTCHours(),
				       now.getUTCMinutes(),
				       now.getUTCSeconds());
    }

    if (f.elements["file_to_add_" + questionId].value == '') {
	alert('Please specify a file to upload.');

	return false;
    }

    if (enableReadyForGrading) {
	elt = f.elements["ready_for_grading"];

	if (typeof(elt) != 'undefined') {
	    elt.disabled = false;
	}

	var now = new Date();

	f.target = now.getUTCFullYear()
			+ '_' + (now.getUTCMonth() + 1)
			+ '_' + now.getUTCDate()
			+ '_' + now.getUTCHours()
			+ '_' + now.getUTCMinutes()
			+ '_' + now.getUTCSeconds();

	var w =
	    window.open("",
			f.target,
			"height=300,width=500,toolbar=no,menubar=no,scrollbars=no,resizable=yes");

	w.focus();
    }
    else {
	f.target = "";
    }

    return true;
}
</script></head><body  onload="">
<span class=dialogueheader>Take Assessment: Exercise 2</span><br><br>
  <form name="Assm" id="Assm" method=POST action="https://www.icarnegie.com:443/submitassmcmd.php" enctype="multipart/form-data">
<td width=5><br></td><a name="top_of_page"></a><table><tr>
  <input type=hidden name="object_id" id="object_id" value='13001922' ></tr></table>
<table><tr>
<td width=5><br></td>  <td class=td0_instructions  align=left valign=top >
     <span class=instructions >Please answer the following question(s).<br />
If the assessment includes multiple-choice questions, click the &quot;Submit Answers&quot; button when you have completed those questions.</span></td>
  <input type=hidden name="MAX_FILE_SIZE" id="MAX_FILE_SIZE" value='200000' ><td width=5><br></td></tr></table>
<a name="top_10639343"></a><table><tr>
<td width=5><br></td>  <td class=td0_highlight-label width=12 align=right valign=top nowrap >
     <span class=highlight-label >1.</span></td>
<td width=5><br></td>  <td valign=top class=td0_x align=left > <a href="#10639343">Go to bottom of question.</a> </td>
</tr></table>
<table><tr>
<td width=5><br></td>  <td valign=top class=td0_x align=left > <!-- new pg 042903 ici -->

<h2 align="center">Modeling 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>UML</em> 
      <ul>
        <li>Knowledge of class diagram notation</li>
      </ul>
    <li><i>Object-Oriented Design</i> 
      <ul>
        <li>Knowledge of modeling concepts: 
          <ul>
            <li>Identifying classes</li>
            <li>Identifying relationships between classes</li>
            <li>Identifying class attributes</li>
            <li>Identifying class methods</li>
          </ul>
        </li>
      </ul>
  </ul>
  <p> <b><i>Goals:</i></b> Reinforce your object-oriented design skills
<p> <b><i>Outcomes:</i></b> You will master the following skills: 
  <ul>
    <li>Produce a UML class diagram, from a specification, that shows: 
      <ul>
        <li> classes</li>
        <li>attributes</li>
        <li>methods</li>
        <li>relationships</li>
      </ul>
    </li>
  </ul>
</blockquote>
<h3>Background </h3>

<p>This assignment asks you to model a coffee store application. </p>
<h3>Description</h3>
<p><em>Gourmet Coffee</em> is a store that sells coffee from countries around 
  the globe. It also sells coffee brewing machines and other accessories for coffee 
  consumption. The <em>Gourmet Coffee System</em> maintains a product catalog, 
  processes orders, and tracks the store's sales. </p>
<p>The catalog maintains the following information about the store's products:</p>
<ul>
  <li>Coffee
    <ul>
      <li>Code</li>
      <li>Description</li>
      <li>Price</li>
      <li>Country of origin</li>
      <li>Type of roast</li>
      <li>Flavor</li>
      <li>Aroma</li>
      <li>Acidity</li>
      <li>Body</li>
    </ul>
  </li>
</ul>
<ul>
  <li>Coffee brewer
    <ul>
      <li>Code</li>
      <li>Description</li>
      <li>Price</li>
      <li>Model of the brewer</li>
    </ul>
  </li>
  <ul>
    <li>Type of the water supply: <em>Pour-over</em> or <em>Automatic</em></li>
    <li>Capacity: number of cups</li>
  </ul>
</ul>
<ul>
  <li>Coffee accessory
    <ul>
      <li>Code</li>
      <li>Description</li>
      <li>Price</li>
    </ul>
  </li>
</ul>
<p>The following tables show some of the products sold by<cite> Gourmet Coffee</cite>. 
</p>

<blockquote> 
  <table cellpadding="2" width="75%" cellspacing="2" border="0">
    <tr> 
      <td><img width="570" height="165" src="images/table-coffee.gif" alt="Figure 1 Coffee "> 
      </td>
    </tr>
    <tr> 
      <td><strong>Figure 1</strong><em> Coffee </em></td>
    </tr>
  </table>
</blockquote>

<blockquote>
<table cellpadding="2" width="75%" cellspacing="2" border="0">
  <tr>
      <td><img width="492" height="120" src="images/table-brewer.gif" alt="Figure 2 Coffee brewers"> 
      </td>
  </tr>
  <tr>
      <td><strong>Figure 2</strong><em> Coffee brewers</em></td>
  </tr>
</table>
</blockquote>

<blockquote> 
  <table cellpadding="2" width="69%" cellspacing="2" border="0">
    <tr> 
      <td><img width="290" height="103" src="images/table-accessory.gif" alt="Figure 3 Coffee accessories"></td>
    </tr>
    <tr> 
      <td><strong>Figure 3</strong><em> Coffee accessories</em></td>
    </tr>
  </table>
</blockquote>

<p>The <em>Gourmet Coffee System</em>  processes  orders.
  An order contains a list of products, their quantities, and the total cost.
  The following is an
    example
    of
an order:</p>
<blockquote>
<table cellpadding="2" width="75%" cellspacing="2" border="0">
  <tr>
      <td><img width="375" height="103" src="images/table-order.gif" alt="Figure 4 Order"></td>
  </tr>
  <tr>
      <td><strong>Figure 4</strong><em> Order</em></td>
  </tr>
</table>

</blockquote>

<p>In the <em>Gourmet Coffee System</em>, the user can:</p>
<ul>
  <li>Display the catalog: lists the code and description of
     each product </li>
  <li> Display a  product</li>
  <li>Display the current order: lists quantity, code, and price of each product 
    in the current order, and the total of the order.</li>
  <li>Add a product to the current order&#8212;if the specified product is already
    part of the order, this command will modify the quantity of that product</li>
  <li> Remove a product from the current order</li>
  <li>Register the sale of the current order&#8212;this command adds the order 
    to the store's sales and empties the current order</li>
  <li> Display the sales: lists all the orders that have been sold</li>
</ul>
<p>Run  the sample executable that is provided to learn more about the <em>Gourmet
Coffee System</em>.</p>
<h3>Files</h3>
<p>Following is a sample executable of the <em>Gourmet Coffee System</em>.</p>
<ul>
  <li><cite><a href="/content/SSD/SSD3/4.2.0.1/normal/pg-class-dsgn/pg-dsgnng-class/assm-exer-mdlng-cof-gou-sys/pool-pr-uml-mdlng/qn-pr-mdlng-gou-cof-sys_v2/handout/gourmet-coffee-sample-executable.jar">gourmet-coffee-sample-executable.jar</a></cite> 
    &#151; Download this file now. It is a sample executable.</li>
</ul>
<h3>Tasks </h3>
<p>These steps will guide you for completing this assignment:</p>
<ol>
  <li><strong>First</strong>, run the sample executable by issuing the following 
    command at the command prompt: 
    <blockquote><tt>C:\&gt;</tt><kbd>java -jar gourmet-coffee-sample-executable.jar</kbd> 
    </blockquote>
  </li>
</ol>
<ol start="2">
  <li><strong>Then</strong>, follow the technique described in page <a href="javascript:ContentByName('pg-mdlng-class');">1.2.5&nbsp;Modeling 
    Classes</a> to model the <em>Gourmet Coffee System</em>. 
    <p> Identify the following:</p>
    <ul>
      <li>The classes</li>
      <li>The association relationships (include direction, multiplicity, and 
        association attribute)</li>
      <li>The specialization/generalization relationships</li>
      <li>The attributes of each class</li>
      <li>The methods of each class</li>
    </ul>
    <p>Your class diagram should include:</p>
    <ul>
      <li>The class of the gourmet coffee application</li>
      <li>The accessor methods</li>
      <li>The mutator methods if are needed</li>
      <li>For the collections: 
        <ul>
          <li> The methods to add and access elements</li>
          <li> The methods to remove elements if are needed</li>
        </ul>
      </li>
      <li>The methods that compute other values not included in the attributes. 
      </li>
    </ul>
    <p>Use Sun's coding conventions when naming classes, methods, and attributes.</p>
  </li>
  <li>Use Eclipse, <a href="http://horstmann.com/violet/" target="externalWindow">Violet</a>, 
    PowerPoint, or another tool of your choosing to draw a UML class diagram.</li>
</ol>
<ol start="4">
  <li>Save the UML class diagram in a SVG, GIF, or JPG format in a file named <em>uml-gou-cof</em>. </li>
</ol>
<h3>Submission</h3>
<p>Upon completion, submit <strong>only</strong> the SVG, GIF, or JPG file <em>uml-gou-cof</em>. 
  The extension of this file will depend on the tool used to create the diagram. 
</p>
 </td>
<td width=5><br></td></tr></table>
<a name="10639343"></a><table><tr>
<td width=5><br></td>  <td valign=top class=td0_x align=left > <a href="#top_10639343">Go to top of question.</a> </td>
<td width=5><br></td></tr></table>
<hr><table><tr>
<td width=5><br></td>  <td valign=top class=td0_x align=left ><span class=lbl0-x>File to submit:</span><br> <input type=file class='x' name=file_to_add_10639343 value="" size=20 maxLength=500 > </td>
<td width=5><br></td><td valign=bottom>  <input class=x value="Upload File"  type=submit name=add_file id=add_file  style="width: 12em;" onClick='return SetUploadTime("https://www.icarnegie.com:443/takeassmcmd.php?question_id=10639343", 10639343, false)'></td><td width=5><br></td><td valign=bottom>  <input class=x value="Forward File"  type=submit name=mail_file id=mail_file  style="width: 12em;" onClick='return SetUploadTime("https://bjtu-cqc.icarnegie.com:443/mailuploadcmd.php?question_id=10639343", 10639343, true)'></td><td width=5><br></td><td valign=bottom>  <input class=x value="Refresh" onClick="ChangeCommand(document.Assm, 'https://www.icarnegie.com:443/refreshassmtakecmd.php?question_id=10639343')" type=submit   onfocus='ResetTarget()'></td><td width=5><br></td><td valign=bottom>  <input class=x-font value="Ready for Grading" onClick="ChangeCommand(document.Assm, 'https://www.icarnegie.com:443/takeassmcmd.php?question_id=10639343')" type=submit name=ready_for_grading id=ready_for_grading  style="width: 12em;" onfocus='ResetTarget()' disabled></td><td width=5><br></td></tr></table>
<hr><table><tr>
  <input type=hidden name="pr_state_10639343" id="pr_state_10639343" value='a:2:{i:0;s:10:&quot;incomplete&quot;;i:1;a:0:{}}' ></tr></table>
<table><tr>
<td width=5><br></td>  <td valign=top class=td0_x align=left > <a href="#top_of_page">Go to top of assessment.</a> </td>
  <input type=hidden name="max_mins_per_try" id="max_mins_per_try" value='' >  <input type=hidden name="end_date" id="end_date" value='' >  <input type=hidden name="course_section_id" id="course_section_id" value='12959222' >  <input type=hidden name="assm_id" id="assm_id" value='9709740' >  <input type=hidden name="template_id" id="template_id" value='13001922' >  <input type=hidden name="record_id" id="record_id" value='13001923' >  <input type=hidden name="client_time" id="client_time" value='' ></tr></table>
<table><tr>
<td width=5><br></td>  <td valign=top class=td0_copyright align=left > &#169; Copyright 2006 iCarnegie, Inc.  All rights reserved. </td>
</tr></table>
</form>

</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -