Program Completion Finish the describeRules method Remove all temporary statements Possible Extensions Allow the user to set her desired min and max for secret numbers Allow the user to set the number of guesses allowed Keep the score—the number of guesses made —while playing games and display the average score when the user quits the program
50 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 984 | Lượt tải: 0
Possible Extensions Morphing the object shape Changing the object color Drawing multiple objects Drawing scrolling text
61 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 994 | Lượt tải: 0
We will implement the describeProgram method We will format the monthly and total payments to two decimal places using DecimalFormat. Directory: Chapter4/Step5 Source Files (final version): LoanCalculator.java Loan.java
51 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1124 | Lượt tải: 0
We will add a program description We will format the monthly and total payments to two decimal places using DecimalFormat. Directory: Chapter3/Step4 Source File: Ch3LoanCalculator.java
47 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 933 | Lượt tải: 0
The work of a programmer is not done yet. Once the working program is developed, we perform a critical review and see if there are any missing features or possible improvements One suggestion Improve the initial prompt so the user knows the valid input format requires single spaces between the first, middle, and last names
54 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1031 | Lượt tải: 0
Much like building a skyscraper, we need a disciplined approach in developing complex software applications. Software engineering is the application of a systematic and disciplined approach to the development, testing, and maintenance of a program. In this class, we will learn how to apply sound software engineering principles when we develop sa...
19 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1012 | Lượt tải: 0
Java is a high-level object-oriented language developed by Sun Microsystems. Java’s clean design and wide availability make it an ideal language for teaching the fundamentals of computer programming.
9 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1114 | Lượt tải: 0
How do we test a program? Be systematic “pecking at the keyboard” is okay for very small programs and for very initial tests, but is insufficient for real systems Think of testing and correctness from the very start When possible, test parts of a program in isolation E.g., when you write a complicated function write a little program that simpl...
34 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1013 | Lượt tải: 0
InetAddress không có constructor public static InetAddress InetAddress.getByName(String hostname) Kết nối đến 1 máy chủ, tham số là 1 chuỗi ký tự (tên máy, địa chỉ IP, địa chỉ 1 trang web, ) public static InetAddress[ ] InetAddress.getAllByName(String hostname) Kết quả trả về là 1 mảng đối tượng thuộc kiểu InetAddress public static Inet...
11 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1135 | Lượt tải: 0
Computation What is computable? How best to compute it? Abstractions, algorithms, heuristics, data structures Language constructs and ideas Sequential order of execution Expressions and Statements Selection Iteration Functions Vectors
31 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1060 | Lượt tải: 0