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

📄 takeassmcmd[1].html

📁 ssd 3 practical quiz1 自己做的
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<html>
<head>
<link rel=stylesheet href="/css/cteform.css" type="text/css">
<title>Take Assessment: Practical Quiz 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: Practical Quiz 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='13001868' ></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>
</tr></table>
<table><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('2007-10-22 08:12:33 UTC') + '.' + '</td>');</script>  <input type=hidden name="MAX_FILE_SIZE" id="MAX_FILE_SIZE" value='512000' ><td width=5><br></td></tr></table>
<a name="top_9709427"></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="#9709427">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>iCarnegie</cite> Information</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>Use 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>
      </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 build console applications 
    using I/O classes, wrapper classes, and exceptions
  <p> <b><i>Outcomes:</i></b> You will master the following skills: 
  <ul>
    <li> Produce a menu-driven application that reads data from the keyboard and 
      displays results in the standard output
    <li>Produce an application that uses: 
      <ul>
        <li>Wrapper classes to read numerical data</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>Menus for soliciting input from the user are common in console applications. 
  This assignment asks you to construct a menu-driven application that reads and 
  validates user input. Your application will consist of one class called <code>ICarnegieInfoApplication</code>.</p> 
<h3>Description</h3>

<p><code>ICarnegieInfoApplication</code> presents the user with a menu of options, 
  prompts the user for a choice, and processes the user's response:</p>
<ul>
  <li>Choice 0 terminates the program.</li>
  <li>Choice 1 displays the name of <cite>iCarnegie</cite>.</li>
  <li>Choice 2 displays the address of <cite>iCarnegie</cite>.</li>
  <li>Choice 3 displays the telephone of <cite>iCarnegie</cite>.</li>
  <li>Choice 4 displays the email of <cite>iCarnegie</cite>.</li>
  <li>Choice 5 displays the URL of <cite>iCarnegie</cite>.</li>
</ul>
<p> The class <code>ICarnegieInfoApplication</code> uses the class <code>ICarnegieInfo</code>. 
  <code>ICarnegieInfo</code> stores the contact information for <cite>iCarnegie</cite>. 
  A complete implementation of <code>ICarnegieInfo</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-qz-pr-io-tokenzr/pool-pr-io-excptns/qn-pr-icarnegie-info/handout/student-files.zip">student-files.zip</a></cite>. Review 
  its documentation and become familiar with it. </p>
<ul>
  <li><code><a href="/content/SSD/SSD3/4.2.0.1/normal/pg-class-dsgn/pg-java-apps/assm-qz-pr-io-tokenzr/pool-pr-io-excptns/qn-pr-icarnegie-info/handout/ICarnegieInfo.html" target="internalWindow"><em>ICarnegieInfo</em></a></code>. 
    Documentation for class <code>ICarnegieInfo</code></li>
</ul>
<p>Note that class <code>ICarnegieInfo</code> does not have a public constructor. 
  Instead, you will use the method <code>ICarnegieInfo.getInstance</code> to obtain 
  an instance of the class.</p>
<p>A partial implementation of class <code>ICarnegieInfoApplication</code> is 
  provided. This class contains the following methods:</p>
<ul>
  <li> <code><em>public static void main(String[] args)</em></code>. This method 
    is complete and requires no modification. <code>main</code> has a loop that 
    calls the method <code>getChoice</code> to obtain the user's choice. <code>main</code> 
    then displays the information requested. Choice <code>0</code> causes the 
    loop to terminate gracefully. </li>
</ul>
<ul>
  <li><code><em>private static int getChoice()</em></code>. This method must be 
    completed. <code>getChoice</code> presents the user with a menu of options 
    and verifies the user's choice.</li>
</ul>

<h3>Files</h3>
<p>The following files are needed to complete this assignment: </p>
<ul>
  <li><cite><a href="/content/SSD/SSD3/4.2.0.1/normal/pg-class-dsgn/pg-java-apps/assm-qz-pr-io-tokenzr/pool-pr-io-excptns/qn-pr-icarnegie-info/handout/exe-icarnegie-info.jar">exe-icarnegie-info.jar</a></cite>. 
    Download this file. It is a sample executable.</li>
  <li><cite><a href="/content/SSD/SSD3/4.2.0.1/normal/pg-class-dsgn/pg-java-apps/assm-qz-pr-io-tokenzr/pool-pr-io-excptns/qn-pr-icarnegie-info/handout/student-files.zip">student-files.zip</a></cite>. Download 
    this file. This archive contains the following: 
    <ul>
      <li><cite>ICarnegieInfo.class</cite>. A complete implementation</li>
      <li><cite>ICarnegieInfo.html</cite>. Documentation</li>
      <li><cite>ICarnegieInfoApplication.java</cite>. Use this template to complete 
        your implementation.</li>
    </ul>
  </li>
</ul>
<h3>Tasks</h3>
<p>To complete this assessment, you will implement method <code>getChoice</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-icarnegie-info.jar</kbd></blockquote>

⌨️ 快捷键说明

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