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

📄 练习题.htm

📁 Java编程技巧
💻 HTM
字号:
<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="练习题.files/filelist.xml">
<title>练    习    题</title>
<!--[if gte mso 9]><xml>
 <o:DocumentProperties>
  <o:Author>王浩枫</o:Author>
  <o:LastAuthor>王浩枫</o:LastAuthor>
  <o:Revision>2</o:Revision>
  <o:TotalTime>0</o:TotalTime>
  <o:Created>2003-12-12T05:25:00Z</o:Created>
  <o:LastSaved>2003-12-12T05:25:00Z</o:LastSaved>
  <o:Pages>1</o:Pages>
  <o:Words>71</o:Words>
  <o:Characters>410</o:Characters>
  <o:Company>706-3</o:Company>
  <o:Lines>3</o:Lines>
  <o:Paragraphs>1</o:Paragraphs>
  <o:CharactersWithSpaces>480</o:CharactersWithSpaces>
  <o:Version>10.2625</o:Version>
 </o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:PunctuationKerning/>
  <w:DrawingGridVerticalSpacing>7.8 磅</w:DrawingGridVerticalSpacing>
  <w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery>
  <w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery>
  <w:Compatibility>
   <w:SpaceForUL/>
   <w:BalanceSingleByteDoubleByteWidth/>
   <w:DoNotLeaveBackslashAlone/>
   <w:ULTrailSpace/>
   <w:DoNotExpandShiftReturn/>
   <w:AdjustLineHeightInTable/>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:UseFELayout/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:宋体;
	panose-1:2 1 6 0 3 1 1 1 1 1;
	mso-font-alt:SimSun;
	mso-font-charset:134;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
	{font-family:黑体;
	panose-1:2 1 6 0 3 1 1 1 1 1;
	mso-font-alt:SimHei;
	mso-font-charset:134;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:1 135135232 16 0 262144 0;}
@font-face
	{font-family:"\@宋体";
	panose-1:2 1 6 0 3 1 1 1 1 1;
	mso-font-charset:134;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
	{font-family:"\@黑体";
	panose-1:2 1 6 0 3 1 1 1 1 1;
	mso-font-charset:134;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:1 135135232 16 0 262144 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	mso-pagination:none;
	font-size:10.5pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:宋体;
	mso-font-kerning:1.0pt;}
h1
	{mso-style-next:正文;
	margin-top:17.0pt;
	margin-right:0cm;
	margin-bottom:16.5pt;
	margin-left:0cm;
	text-align:justify;
	text-justify:inter-ideograph;
	line-height:240%;
	mso-pagination:lines-together;
	page-break-after:avoid;
	mso-outline-level:1;
	font-size:22.0pt;
	font-family:"Times New Roman";
	mso-font-kerning:22.0pt;}
h4
	{mso-style-next:正文;
	margin-top:14.0pt;
	margin-right:0cm;
	margin-bottom:14.5pt;
	margin-left:0cm;
	text-align:justify;
	text-justify:inter-ideograph;
	line-height:156%;
	mso-pagination:lines-together;
	page-break-after:avoid;
	mso-outline-level:4;
	font-size:14.0pt;
	font-family:Arial;
	mso-fareast-font-family:黑体;
	mso-bidi-font-family:"Times New Roman";
	mso-font-kerning:1.0pt;}
p.MsoToc2, li.MsoToc2, div.MsoToc2
	{mso-style-update:auto;
	mso-style-noshow:yes;
	mso-style-next:正文;
	margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:.3pt;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	text-indent:.05pt;
	mso-char-indent-count:.01;
	mso-pagination:none;
	tab-stops:0cm 84.0pt right dotted 464.4pt;
	font-size:14.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:宋体;
	mso-font-kerning:1.0pt;}
p.1, li.1, div.1
	{mso-style-name:样式1;
	mso-style-update:auto;
	mso-style-parent:"标题 4";
	margin-top:14.0pt;
	margin-right:0cm;
	margin-bottom:14.5pt;
	margin-left:0cm;
	text-align:justify;
	text-justify:inter-ideograph;
	text-indent:21.75pt;
	line-height:156%;
	mso-pagination:lines-together;
	page-break-after:avoid;
	mso-outline-level:4;
	font-size:14.0pt;
	font-family:Arial;
	mso-fareast-font-family:黑体;
	mso-bidi-font-family:"Times New Roman";
	mso-font-kerning:1.0pt;
	font-weight:bold;}
span.GramE
	{mso-style-name:"";
	mso-gram-e:yes;}
 /* Page Definitions */
 @page
	{mso-page-border-surround-header:no;
	mso-page-border-surround-footer:no;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	mso-header-margin:42.55pt;
	mso-footer-margin:49.6pt;
	mso-paper-source:0;
	layout-grid:15.6pt;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:普通表格;
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=ZH-CN style='tab-interval:21.0pt;text-justify-trim:punctuation'>

<div class=Section1 style='layout-grid:15.6pt'>

<h1 align=center style='text-align:center'><span style='font-size:16.0pt;
line-height:240%;font-family:黑体'>练<span lang=EN-US><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span>习<span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span>题<o:p></o:p></span></span></h1>

<p class=MsoNormal style='text-indent:28.05pt;line-height:150%'><span
style='font-size:12.0pt;line-height:150%;font-family:宋体;mso-hansi-font-family:
"Times New Roman"'>为了帮助广大读者学会<span lang=EN-US>Java,我们还精选了如下练习题。读者可以试着自己设计自己编程。子曰:“知之者不如好之者,好之者不如乐之者。”读者必须输入、修改、编译、运行自己编制的Java程序。<span
class=GramE>每运行</span>一个Java程序,都可能得到一些新的启示。熟能生巧,只有通过自己不断地实践,才能真正理解并掌握Java编程技巧。<o:p></o:p></span></span></p>

<p class=MsoNormal style='text-indent:28.05pt;line-height:150%'><span
style='font-size:12.0pt;line-height:150%;font-family:宋体;mso-hansi-font-family:
"Times New Roman"'>本书的练习题如下:<span lang=EN-US><o:p></o:p></span></span></p>

<p class=MsoNormal style='text-indent:28.05pt;line-height:150%'><span
lang=EN-US style='font-size:12.0pt;line-height:150%;font-family:宋体;mso-hansi-font-family:
"Times New Roman"'>1.编制在中华世纪坛“新北京、新奥运”的广告牌<span class=GramE>小应用</span>;<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:28.05pt;line-height:150%'><span
lang=EN-US style='font-size:12.0pt;line-height:150%;font-family:宋体;mso-hansi-font-family:
"Times New Roman"'>2.编制2006年世界杯<span class=GramE>小应用</span>;<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:28.05pt;line-height:150%'><span
lang=EN-US style='font-size:12.0pt;line-height:150%;font-family:宋体;mso-hansi-font-family:
"Times New Roman"'>3.编制十二生肖动画时钟<span class=GramE>小应用</span>;<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:28.05pt;line-height:150%'><span
lang=EN-US style='font-size:12.0pt;line-height:150%;font-family:宋体;mso-hansi-font-family:
"Times New Roman"'>4.编制动画音乐闹钟<span class=GramE>小应用</span>;<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:28.05pt;line-height:150%'><span
lang=EN-US style='font-size:12.0pt;line-height:150%;font-family:宋体;mso-hansi-font-family:
"Times New Roman"'>5.编制铁路运行调度<span class=GramE>小应用</span>;<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:28.05pt;line-height:150%'><span
lang=EN-US style='font-size:12.0pt;line-height:150%;font-family:宋体;mso-hansi-font-family:
"Times New Roman"'>6.编制打弹子机游戏<span class=GramE>小应用</span>;<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:28.05pt;line-height:150%'><span
lang=EN-US style='font-size:12.0pt;line-height:150%;font-family:宋体;mso-hansi-font-family:
"Times New Roman"'>7.编制神勇小企鹅游戏<span class=GramE>小应用</span>;<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:28.05pt;line-height:150%'><span
lang=EN-US style='font-size:12.0pt;line-height:150%;font-family:宋体;mso-hansi-font-family:
"Times New Roman"'>8.编制另一种Java实时在线聊天<span class=GramE>室小应用</span>(客户/服务器结构);<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:28.05pt;line-height:150%'><span
lang=EN-US style='font-size:12.0pt;line-height:150%;font-family:宋体;mso-hansi-font-family:
"Times New Roman"'>9.编制学生成绩<span class=GramE>簿</span>Java应用程序。要求能够实现对于某一课程的学生三次测验成绩加以记录,并实现以文件方式保存该记录,并可读取或<span
class=GramE>另存文件</span>。参照本书的跳水计分系统,在打开或新建文件后,实现对文件记录的添加和删除,以及修改学生姓名、编辑测验成绩、计算平均成绩、显示所有学生信息或指定显示某一学生的信息等。<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

</div>

</body>

</html>

⌨️ 快捷键说明

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