翰林國際教育全網首發
力爭超快速發布最全資料
助你在升學路上一帆風順
為你的未來保駕護航
此套題僅?p II含有簡答題,
共計時1小時45分鐘,共4題
占總分50%
每道大題可能含有不同數量的小題
完整版下載鏈接見文末
1)A travel agency maintains a list of information about airline flights. Flight information includes a departure time and an arrival time. You may assume that the two times occur on the same day. These times are represented by objects of the Time class.

The declaration for the Time class is shown below. It includes a method minutesUntil that returns the difference (in minutes) between the current Time object and another Time object.
For example, assume that t1 and t2 are Time objects where t1 represents 1:00 P.M. and t2 represents 2:15 P.M. The call t1.minutesUntil(t2) will return 75 and the call t2.minutesUntil(t1) will return -75.
The declaration for the Flight class is shown below. It has methods to access the departure time and the arrival time of a flight. You may assume that the departure time of a flight is earlier than its arrival time.

A trip consists of a sequence of flights and is represented by the Trip class. The Trip class contains an ArrayList of Flight objects that are stored in chronological order. You may assume that for each flight after the first flight in the list, the departure time of the flight is later than the arrival time of the preceding flight in the list. A partial declaration of the Trip class is shown below. You will write two methods for the Trip class.


以上就是關于【2008 AP Computer Science A 計算機科學A真題系列之簡答題免費下載】的解答,如需了解學校/賽事/課程動態,可至翰林教育官網獲取更多信息。
往期文章閱讀推薦:
新賽季AP如何“彎道超車”?拒絕無效內卷!AP科學選課指南來了!
CB官宣重磅新規!2027年AP考試開考時間新規解讀+大考日程發布!大陸報名搶位開啟行動,翰林3大考點幫你提前鎖位!

? 2026. All Rights Reserved. 滬ICP備2023009024號-1