1、Chapter 1 Introduction to Computers,Programs,and Java (2学时)1、 目的要求: To review computer basics, programs, and operating systems (1.2-1.4). To explore the relationship between Java and the World Wide Web (1.5). To distinguish the terms API, IDE, and JDK (1.6). To write a simple Java program (1.7). To
2、display output on the console ( To explain the basic syntax of a Java program ( To create, compile, and run Java programs (1.8). (GUI) To display output using the JOptionPane output dialog boxes (1.9). 2、要点(或讲授内容)1.1 Introduction 1.2 What Is a Computer? 1.3 Programs 1.4 Operating Systems 1.5 Java, W
3、orld Wide Web, and Beyond 1.6 The Java Language Specification, API, JDK, and IDE 1.7 A Simple Java Program 1.8 Creating, Compiling, and Executing a Java Program 1.9 (GUI) Displaying Text in a Message Dialog BoxChapter 2 Elementary Programming(2学时)1、目的要求 To write Java programs to perform simple calcu
4、lations (2.2). To obtain input from the console using the Scanner class (2.3). To use identifiers to name variables, constants, methods, and classes (2.4). To use variables to store data (2.5-2.6). To program with assignment statements and assignment expressions (2.6). To use constants to store perm
5、anent data (2.7). To declare Java primitive data types: byte, short, int, long, float, double, and char (2.8.1). To use Java operators to write numeric expressions (2.8.22.8.3). To display current time (2.9). To use short hand operators (2.10). To cast value of one type to another type (2.11). To co
6、mpute loan payment (2.12). To represent characters using the char type (2.13). To compute monetary changes (2.14). To represent a string using the String type (2.15). To become familiar with Java documentation, programming style, and naming conventions (2.16). To distinguish syntax errors, runtime e
7、rrors, and logic errors and debug errors (2.17). (GUI) To obtain input using the JOptionPane input dialog boxes (2.18).2、 要点(或讲授内容)2.1 Introduction 2.2 Writing Simple Programs 2.3 Reading Input from the Console 2.4 Identifiers 2.5 Variables 2.6 Assignment Statements and Assignment Expressions2.7 Nam
8、ed Constants 2.8 Numeric Data Types and Operations 2.9 Problem: Displaying the Current Time 2.10 Shorthand Operators 2.11 Numeric Type Conversions 2.12 Problem: Computing Loan Payments 2.13 Character Data Type and Operations 2.14 Problem: Counting Monetary Units 2.15 The String Type 2.16 Programming
9、 Style and Documentation 2.17 Programming Errors 2.18 (GUI) Getting Input from Input Dialogs Chapter 3 Selections(2学时)1、目的要求: To declare boolean type and write Boolean expressions using comparison operators (3.2). To program AdditionQuiz using Boolean expressions (3.3). To implement selection contro
10、l using one-way if statements (3.4) To program the GuessBirthday game using one-way if statements (3.5). To implement selection control using two-way if statements (3.6). To implement selection control using nested if statements (3.7). To avoid common errors in if statements (3.8). To program using
11、selection statements for a variety of examples (BMI, ComputeTax, SubtractionQuiz) (3.9-3.11). To generate random numbers using the m() method (3.9). To combine conditions using logical operators (&, |, and !) (3.12). To program using selection statements with combined conditions (LeapYear, Lottery)
12、(3.13-3.14). To implement selection control using switch statements (3.15). To write expressions using the conditional operator (3.16). To format output using the .printf method and to format strings using the t method (3.17). To examine the rules governing operator precedence and associativity (3.1
13、8). (GUI) To get user confirmation using confirmation dialogs (3.19).2、要点:3.1 Introduction3.2 boolean Data Type 3.3 Problem: A Simple Math Learning Tool 3.4 if Statements 3.5 Problem: Guessing Birthdays 3.6 Two-Way if Statements 3.7 Nested if Statements 3.8 Common Errors in Selection Statements 3.9
14、Problem: An Improved Math Learning Tool 3.10 Problem: Computing Body Mass Index 3.11 Problem: Computing Taxes 3.12 Logical Operators 3.13 Problem: Determining Leap Year 3.14 Problem: Lottery 3.15 switch Statements3.16 Conditional Expressions 3.17 Formatting Console Output 3.18 Operator Precedence an
15、d Associativity 3.19 (GUI) Confirmation DialogsChapter 4 Loops(2学时) To write programs for executing statements repeatedly using a while loop (4.2). To develop a program for GuessNumber and SubtractionQuizLoop (4.2.1). To follow the loop design strategy to develop loops (4.2.2). To develop a program
16、for SubtractionQuizLoop (4.2.3). To control a loop with a sentinel value ( To obtain large input from a file using input redirection rather than typing from the keyboard (4.2.4). To write loops using do-while statements (4.3). To write loops using for statements (4.4). To discover the similarities a
17、nd differences of three types of loop statements (4.5). To write nested loops (4.6). To learn the techniques for minimizing numerical errors (4.7). To learn loops from a variety of examples (GCD, FutureTuition, MonteCarloSimulation) (4.8). To implement program control with break and continue (4.9).
18、(GUI) To control a loop with a confirmation dialog (4.10).2、 要点:4.1 Introduction 4.2 The whileLoop 4.3 The do-while Loop 4.4 The for Loop 4.5 Which Loop to Use?4.6 Nested Loops 4.7 Minimizing Numeric Errors 4.8 Case Studies 4.9 Keywords breakand continue 4.10 (GUI) Controlling a Loop with a Confirma
19、tion Dialog Chapter 5 Methods(2学时) To define methods, invoke methods, and pass arguments to a method (5.2-5.5). To develop reusable code that is modular, easy-to-read, easy-to-debug, and easy-to-maintain. (5.6). To use method overloading and understand ambiguous overloading (5.7). To design and impl
20、ement overloaded methods (5.8). To determine the scope of variables (5.9). To know how to use the methods in the Math class (5.10-5.11). To learn the concept of method abstraction (5.12). To design and implement methods using stepwise refinement (5.1 Introduction 5.2 Defining a Method 5.3 Calling a
21、Method 5.4 void Method Example 5.5 Passing Parameters by Values 5.6 Modularizing Code 5.7 Problem: Converting Decimals to Hexadecimals 5.8 Overloading Methods 5.9 The Scope of Variables 5.10 The Math Class 5.11 Case Study: Generating Random Characters 5.12 Method Abstraction and Stepwise Refinement
22、Chapter 6 Single-Dimensional Arrays(1学时) To describe why arrays are necessary in programming (6.1). To declare array reference variables and create arrays (6.2.1-6.2.2). To initialize the values in an array (6.2.3). To access array elements using indexed variables (6.2.4). To declare, create, and in
23、itialize an array using an array initializer (6.2.5). To program common array operations (displaying arrays, summing all elements, finding min and max elements, random shuffling, shifting elements) (6.2.6). To simplify programming using the for-each loops (6.2.7). To apply arrays in the LottoNumbers
24、 and DeckOfCards problems (6.3-6.4). To copy contents from one array to another (6.5). To develop and invoke methods with array arguments and return value (6.66.7). To define a method with variable-length argument list (6.8). To search elements using the linear (6.9.1) or binary (6.9.2) search algor
25、ithm. To sort an array using the selection sort (6.10.1) To sort an array using the insertion sort algorithm (6.10.2). To use the methods in the Arrays class (6.11).6.1 Introduction 6.2 Array Basics 6.3 Problem: Lotto Numbers 6.4 Problem: Deck of Cards 6.5 Copying Arrays 6.6 Passing Arrays to Method
26、s 6.7 Returning an Array from a Method 6.8 Variable-Length Argument Lists 6.9 Searching Arrays 6.10 Sorting Arrays 6.11 The Arrays Chapter 7 Multidimensional Arrays(1学时) To give examples of representing data using two-dimensional arrays (7.1). To declare variables for two-dimensional arrays, create
27、arrays, and access array elements in a two-dimensional array using row and column indexes (7.2). To program common operations for two-dimensional arrays (displaying arrays, summing all elements, finding min and max elements, and random shuffling) (7.3). To pass two-dimensional arrays to methods (7.4). To write a program for grading multiple-choice questions using two-dimensional arrays (7.5). To solve the closest-pair problem using two-dimensional arrays (7.6). To check a Sudoku solution using
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1