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

📄 takeassmcmd[1].html

📁 ssd exercise1.自己做的
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<html>
<head>
<link rel=stylesheet href="/css/cteform.css" type="text/css">
<title>Take Assessment: Exercise 1 &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 1</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='13001876' ></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='512000' ><td width=5><br></td></tr></table>
<a name="top_9709617"></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="#9709617">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"><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><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> <i>Exception Objects</i> 
      <ul>
        <li>Knowledge of exception handling</li>
        <li>Knowledge of <code>NumberFormatException</code></li>
      </ul>
    <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>
  </ul>
  <p> <b><i>Goals:</i></b> Reinforce your ability to use I/O classes, tokenizers, 
    wrapper classes, and exceptions 
  <p> <b><i></i></b><b><i>Outcomes:</i></b> You will demonstrate mastery in the 
    following: 
  <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>
  </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>

⌨️ 快捷键说明

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