Case/Combo: + Nếu làm theo cách tổ hợp nội lực, xem và xuất kết quả của tưng trường hợp tải trọng TT, HT1, HT2, GT, GP, DDT,DDP. + Nếu làm theo cách tổ hợp tải trọng, chỉ cần tập trung vào các loại tổ hợp sau: TH1 : TT + HT1 TH1 : TT +.9( HT1+HT2) • Component: + Xem các thành phần, với khung phẳng trong mp X-Z là: + Axial Forces + Shear Fo...
39 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1423 | Lượt tải: 0
We did not (yet) add Negative numbers % (remainder/modulo) Pre-defined symbolic values Variables Read about that in Chapter 7 % and variables demonstrate useful techniques Major Point Providing “extra features” early causes major problems, delays, bugs, and confusion “Grow” your programs First get a simple working version Then, add fea...
31 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1328 | Lượt tải: 0
Completing a program Tokens Recovering from errors Cleaning up the code Code review Testing
39 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1455 | Lượt tải: 0
Cấu trúc liên kết vs. cấu trúc liên tục 1. Cấu trúc liên tục yêu cầu ít bộ nhớ máy tính, thời gian và công việc lập trình khi các phần tử trong cấu trúc là nhỏ và giải thuật đơn giản ngược lại, cấu trúc liên kết sẽ tiết kiệm hơn 2. Sử dụng con trỏ và cơ chế cấp phát bộ nhớ động cho phép chương trình thích hợp với các ứng dụng có kích thước...
98 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1425 | Lượt tải: 0
In general, use recursion if A recursive solution is natural and easy to understand. A recursive solution does not result in excessive duplicate computation. The equivalent iterative solution is too complex.
19 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1300 | Lượt tải: 0
Mouse events include such user interactions as moving the mouse dragging the mouse (moving the mouse while the mouse button is being pressed) clicking the mouse buttons. The MouseListener interface handles mouse button mouseClicked, mouseEntered, mouseExited, mousePressed, and mouseReleased The MouseMotionListener interface handles mouse mov...
49 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1268 | Lượt tải: 0
We finalize the program by correcting any remaining errors, inconsistency, or unfinished methods. We want to review the methods and improve them as necessarily. One problem (which would have been identified in step 4 testing) we need to correct is the missing method for expanding the roster array when the input file includes more student entries ...
45 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1323 | Lượt tải: 0
We will write a test program to verify that the data can be read back correctly from a file. To test the read operation, the file to read the data from must already exist. We will make this test program save the data first by using the TestAddressBookWrite class from .
37 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1202 | Lượt tải: 0
In the previous two versions, we used an array data structure to maintain a collection of Person objects In the third version, we don't use an array at all. Instead, we use a Map from the Java Collection Framework to maintain a collection of Person objects. We use the person's name as the key of a Map entry and the person object as the value of ...
58 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1233 | Lượt tải: 0
Final Test Since the three operations of add, delete, and search are interrelated, it is critical to test these operations together. We try out various combinations of add, delete, and search operations. Possible Extensions One very useful extension is scanning. Scanning is an operation to visit all elements in the collection. Scanning is usef...
60 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1390 | Lượt tải: 0