《C语言程序设计》教案.doc_第1页
《C语言程序设计》教案.doc_第2页
《C语言程序设计》教案.doc_第3页
《C语言程序设计》教案.doc_第4页
《C语言程序设计》教案.doc_第5页
已阅读5页,还剩11页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

面向对象程序设计教案 付蓉面向对象程序设计Java教案计算机科学学院付蓉一、教学基本要求通过学习面向对象程序设计Java,要求学生:1、 掌握面向对象程序设计。2、 掌握Java开发和运行环境配置。3、 熟悉和掌握Java语言英文技术词汇。4、 熟悉和掌握Java程序设计。5、 掌握Java的面向对象程序设计。6、 掌握基本的UML建模。二、课程教学总计划1、学时安排:本课程总学时56学时,周学时4学时。总共安排讲课40学时;上机实践16学时。2、教材:Introduction to Java Programming,Y.Daniel Liang主编,机械工业出版社,英文第5版3、参考资料:Java语言程序设计 Y.Daniel Liang著 王镁 译 机械工业出版社。Java与面向对象程序设计 印渂 著 清华大学出版社。三、课程教学方法1、教学形式采用“多媒体教学(幻灯片、Java程序编辑、编译、运行)”与传统教学(板书)相结合的手段,并配合一定的上机实践。2、教学过程以英文教材、多媒体教学课件和本课程的讲义为主线,以参考资料为补充,以“上机实践”为学生掌握本课程的重要形式开展教学。四、教学内容本课程的讲授内容提要、重点、难点以本教案为主;具体的教学内容以英文教材、面向对象程序设计讲义为主。Chapter 1 Introduction to Computers, Programs, and Java(讲课2学时;)教学内容:介绍计算机、程序和Java语言的发展和特点。教学要求:1) To review computer basics, programs, and operating systems (1.2-1.4). 2) To represent numbers in binary, decimal, and hexadecimal (1.5 Optional).3) To understand the relationship between Java and the World Wide Web (1.6).4) To know Javas advantages (1.7).5) To distinguish the terms API, IDE, and JDK (1.8).6) To write a simple Java program (1.9).7) To create, compile, and run Java programs (1.10).8) To understand the Java runtime environment (1.10).9) To know the basic syntax of a Java program (1.11).10) To display output on the console and on the dialog box (1.12).难点与重点:1) To understand the Java runtime environment 2) To create, compile, and run Java programs (1.10).3) To know the basic syntax of a Java program作业:Chapter 2 Primitive Data Types and Operations(讲课2学时;上机2学时)教学内容:Java语言语法。教学要求:1) To write Java programs to perform simple calculations (2.2).2) To use identifiers to name variables, constants, methods, and classes (2.3).3) To use variables to store data (2.4-2.5).4) To program with assignment statements and assignment expressions (2.5).5) To use constants to store permanent data (2.6).6) To declare Java primitive data types: byte, short, int, long, float, double, char, and boolean (2.7 2.10).7) To use Java operators to write expressions (2.7 2.10).8) To know the rules governing operand evaluation order, operator precedence, and operator associativity (2.11 2.12).9) To represent a string using the String type. (2.13)10) To obtain input using the JOptionPane input dialog boxes (2.14).11) To obtain input from console (2.16 Optional).12) To format output using JDK 1.5 printf (2.17). 13) To become familiar with Java documentation, programming style, and naming conventions (2.18).14) To distinguish syntax errors, runtime errors, and logic errors (2.19).15) To debug logic errors (2.20).难点与重点:1) To use identifiers to name variables, constants, methods, and classes (2.3).2) To declare Java primitive data types: byte, short, int, long, float, double, char, and boolean (2.7 2.10).3) To use Java operators to write expressions (2.7 2.10).4) To distinguish syntax errors, runtime errors, and logic errors (2.19).5) To debug logic errors作业:Chapter 3 Control Statements(讲课4学时;上机2学时)教学内容:Java语言分支语句;循环语句。教学要求:1) To understand the flow of control in selection and loop statements (3.2-3.7).2) To use Boolean expressions to control selection statements and loop statements (3.2-3.7).3) To implement selection control using if and nested if statements (3.2).4) To implement selection control using switch statements (3.2).5) To write expressions using the conditional operator (3.2).6) To use while, do-while, and for loop statements to control the repetition of statements (3.4).7) To write nested loops (3.4).8) To know the similarities and differences of three types of loops (3.5).9) To implement program control with break and continue (3.6).难点与重点:1) To understand the flow of control in selection and loop statements (3.2-3.7).2) To implement selection control using if and nested if statements (3.2).3) To implement selection control using switch statements (3.2).4) To use while, do-while, and for loop statements to control the repetition of statements (3.4).Chapter 4 Methods(讲课3学时;上机1学时)教学内容:方法的定义和调用。教学要求:1) To create methods, invoke methods, and pass arguments to a method (4.2-4.4).2) To use method overloading and know ambiguous overloading (4.5).3) To determine the scope of local variables (4.6).4) To learn the concept of method abstraction (4.7).5) To know how to use the methods in the Math class (4.8).6) To design and implement methods using stepwise refinement (4.10).7) To write recursive methods (4.11 Optional).8) To group classes into packages (4.12 Optional).难点与重点:1) To create methods, invoke methods, and pass arguments to a method (4.2-4.4).2) To use method overloading and know ambiguous overloading。3) To determine the scope of local variables (4.6).Chapter 5 Arrays(讲课3学时;上机1学时)教学内容:数组定义和使用。教学要求:1) To describe why an array is necessary in programming (5.1).2) To learn the steps involved in using arrays: declaring array reference variables and creating arrays (5.2).3) To initialize the values in an array (5.2).4) To simplify programming using JDK 1.5 enhanced for loop (5.2).5) To copy contents from one array to another (5.3).6) To develop and invoke methods with array arguments and return type (5.4-5.5).7) To sort an array using the selection sort algorithm (5.6).8) To search elements using the linear or binary search algorithm (5.7).9) To declare and create multidimensional arrays (5.8).10) To create ragged arrays (5.8.3 Optional).难点与重点:1) To learn the steps involved in using arrays: declaring array reference variables and creating arrays (5.2).2) To initialize the values in an array (5.2).3) To develop and invoke methods with array arguments and return type (5.4-5.5)4) To search elements using the linear or binary search algorithm (5.7).Chapter 6 Objects and Classes(讲课4学时;上机1学时)教学内容:类和对象的定义;属性和方法。教学要求:1) To understand objects and classes and use classes to model objects (6.2).2) To learn how to declare a class and how to create an object of a class (6.3).3) To understand the roles of constructors and use constructors to create objects (6.3).4) To use UML graphical notations to describe classes and objects (6.3).5) To distinguish between object reference variables and primitive data type variables (6.4).6) To use classes in the Java library (6.5).7) To declare private data fields with appropriate get and set methods to make class easy to maintain (6.6-6.8).8) To develop methods with object arguments (6.9).9) To understand the difference between instance and static variables and methods (6.10).10) To determine the scope of variables in the context of a class (6.11).11) To use the keyword this as the reference to the current object that invokes the instance method (6.12). 12) To store and process objects in arrays (6.13).13) To apply class abstraction to develop software (6.14).14) To declare inner classes (6.17).难点与重点:1) To learn how to declare a class and how to create an object of a class (6.3).2) To distinguish between object reference variables and primitive data type variables (6.4).3) To develop methods with object arguments (6.9).4) To understand the difference between instance and static variables and methods (6.10).5) To use the keyword this as the reference to the current object that invokes the instance method (6.12). 6) To store and process objects in arrays (6.13).Chapter 7 Strings (讲课2学时;上机1学时)教学内容:字符串教学要求:1) To use the String class to process fixed strings (7.2).2) To use the Character class to process a single character (7.3).3) To use the StringBuffer class to process flexible strings (7.4). 4) To use the StringTokenizer class to extract tokens from a string (7.5).5) To know the differences among the String, StringBuffer, and StringTokenizer classes (7.2-7.5).6) To use the JDK 1.5 Scanner class for console input and scan tokens using words as delimiters (7.6).7) To input primitive values and strings from the keyboard using the Scanner class (7.7). 8) To learn how to pass strings to the main method from the command line (7.8).难点与重点:1) To use the String class to process fixed strings (7.2).2) To use the StringBuffer class to process flexible strings (7.4). 3) To know the differences among the String, StringBuffer, and StringTokenizer classes (7.2-7.5).Chapter 8 Inheritance and Polymorphism (讲课4学时)教学内容:继承与多态教学要求:1) To develop a subclass from a superclass through inheritance (8.2).2) To invoke the superclasss constructors and methods using the super keyword (8.3).3) To override methods in the subclass (8.4).4) To explore the useful methods (equals(Object), hashCode(), toString(), finalize(), clone(), and getClass() in the Object class (8.5, 8.11 Optional).5) To comprehend polymorphism, dynamic binding, and generic programming (8.6).6) To describe casting and explain why explicit downcasting is necessary (8.7).7) To understand the effect of hiding data fields and static methods (8.8 Optional).8) To restrict access to data and methods using the protected visibility modifier (8.9).9) To declare constants, unmodifiable methods, and nonextendable class using the final modifier (8.10). 10) To initialize data using initialization blocks and distinguish between instance initialization and static initialization blocks (8.12 Optioanl).难点与重点:1) To develop a subclass from a superclass through inheritance (8.2).2) To invoke the superclasss constructors and methods using the super keyword (8.3).3) To override methods in the subclass (8.4).4) To comprehend polymorphism, dynamic binding, and generic programming (8.6).5) To describe casting and explain why explicit downcasting is necessary (8.7).6) To initialize data using initialization blocks and distinguish between instance initialization and static initialization blocks (8.12 Optioanl).Chapter 9 Abstract Classes and Interfaces(讲课2学时;上机2学时)教学内容:抽象类与接口教学要求:1) To design and use abstract classes (9.2).2) To process calendar using the Calendar and GregorianCalendar classes (9.3).3) To declare interfaces to model weak inheritance relationships (9.4).4) To define a natural order using the Comparable interface (9.4).5) To know the similarities and differences between an abstract class and interface (9.4).6) To enable objects cloneable using the Cloneable interface (9.4.4 Optional).7) To use wrapper classes (Byte, Short, Integer, Long, Float, Double, Character, and Boolean) to wrap primitive data values into objects (9.5).8) To create a generic sort method (9.5).9) To simplify programming using JDK 1.5 automatic conversion between primitive types and wrapper class types (9.6).难点与重点:1) To design and use abstract classes (9.2).2) To declare interfaces to model weak inheritance relationships (9.4).3) To define a natural order using the Comparable interface (9.4).4) To know the similarities and differences between an abstract class and interface (9.4).5) To use wrapper classes (Byte, Short, Integer, Long, Float, Double, Character, and Boolean) to wrap primitive data values into objects (9.5).Chapter 10 Object-Oriented Modeling(讲课1学时)教学内容:面向对象建模教学要求:1) To become familiar with the process of program development (10.2).2) To learn the relationship types: association, aggregation, composition, strong inheritance, and weak inheritance (10.3).3) To declare classes to represent the relationships among the classes (10.3).4) To design systems by identifying the classes and discovering the relationships among these classes (10.4).5) To implement the Rational class and process rational numbers using this class (10.5).6) To design classes that follow the class-design guidelines (10.6).7) To model dynamic behavior using sequence diagrams and statechart diagrams (10.7 Optional)8) To know the concept of framework-based programming using Java API (10.8).难点与重点:1) To become familiar with the process of program development (10.2).2) To learn the relationship types: association, aggregation, composition, strong inheritance, and weak inheritance (10.3).3) To declare classes to represent the relationships among the classes (10.3).4) To design classes that follow the class-design guidelines (10.6).Chapter 11 Getting Started with GUI Programming(讲课4学时;上机2学时)教学内容:GUI程序设计入门教学要求:1) To distinguish simple GUI components (11.2).2) To describe the Java GUI API hierarchy (11.3).3) To create user interfaces using frames, panels, and simple GUI components (11.4).4) To understand the role of layout managers (11.5).5) To use the FlowLayout, GridLayout, and BorderLayout managers to layout components in a container (11.5).6) To specify colors and fonts using the Color and Font classes (11.6-11.7).7) To use JPanel as subcontainers (11.8).8) To paint graphics using the paintComponent method on a panel (11.9).9) To draw strings, lines, rectangles, ovals, arcs, and polygons using the drawing methods in the Graphics class (11.9).10) To center display using the FontMetrics Class (11.10). 11) To develop a reusable component MessagePanel to display a message on a panel (11.11). 12) To develop a reusable component StillClock to emulate an analog clock (11.12 Optional).难点与重点:1) To describe the Java GUI API hierarchy (11.3).2) To create user interfaces using frames, panels, and simple GUI components (11.4).3) To understand the role of layout managers (11.5).4) To use the FlowLayout, GridLayout, and BorderLayout managers to layout components in a container (11.5).Chapter 12 Event-Driven Programming(讲课1学时)教学内容:事件驱动教学要求:1) To explain the concept of event-driven programming (12.2). 2) To understand event, event source, and event classes (12.2).3) To declare listener classes and write the code to handle events (11.3).4) To register listener objects in the source object (11.3).5) To understand how an event is handled (11.3).6) To write programs to deal with ActionEvent (11.3).7) To write programs to deal with MouseEvent (11.4).8) To write programs to deal with KeyEvent (11.5).9) To use the Timer class to control animations (11.6 Optional).难点与重点:1) To write programs to deal with ActionEvent (11.3).2) To write programs to deal with MouseEvent (11.4).3) To write programs to deal with KeyEvent (11.5).Chapter 13 Creating User Interfaces(讲课2学时;上机2学时)教学内容:事件驱动教学要求:1) To create graphical user interfaces with various user-interface components: JButton, JCheckBox, JRadioButton, JLabel, JTextField, JTextArea, JComboBox, JList, JScrollBar, and JSlider (13.2 13.12).2) To create listeners for various types of events (13.2 13.12). 3) To use borders to visually group user-interface components (13.2).4) To create image icons using the ImageIcon class (13.3).5) To display multiple windows in an application (13.13). 难点与重点:1) To create graphical user interfaces with various user-interface components: JButton, JCheckBox, JRadioButton, JLabel, JTextField, JTextArea, JComboBox, JList, JScrollBar, and JSlider (13.2 13.12).2) To create listeners for various types of events (13.2 13.12). Chapter 14 Applets, Images, and Audio(讲课2学时)教学内容:Applet、图片和声音。教学要求:1) To explain how the Web browser controls and executes applets ( 14.2).2) To describe the init, start, stop, and destroy methods in the Applet class ( 14.2).3) To know how to embed applets in Web pages ( 14.4).4) To run applets from appletviewer and from Web browsers ( 14.4).5) To pass string values to applets from HTML ( 14.5).6) To write a Java program that can run as both an application and an applet ( 14.6).7) To get image files using the URL class and display images in the panel ( 14.9 Optional).8) To develop a reusable component ImageViewer to display images ( 14.10 Optional).9) To get audio files and play sound ( 14.12 Optional).10) To package and deploy Java projects using Java archive files ( 14.13 Optional).11) To use Swing pluggable look-and-feel ( 14.14 Optional). 难点与重点:1) To explain how the Web browser controls and executes applets ( 14.2).2) To describe the init, start, stop, and destroy methods in the Applet class ( 14.2).3) To know how to embed applets in Web pages ( 14.4).4) To write a Java program that can run as both an application and an applet ( 14.6).Chapter 15 Exceptions and Assertions(讲课2学时)教学内容:异常处理教学要求:1) To know what is exception and what is exception handling (15.2).2) To distinguish exception types: Error (fatal) vs. Exception (non-fatal), and checked vs. uncheck exceptions (15.2). 3) To declare exceptions in the method header (15.3).4) To throw exceptions out of a method (15.3).5) To write a try-catch block to handle exceptions (15.3).6) To explain how an exception is propagated (15.3).7) To rethrow exceptions in a try-catch block (15.4).8) To use the finally clause in a try-catch block (15.5).9) To know when to use exception

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论