PRO192_-_FA_2024_-_Block_5_-_PE_3211.webp
Yuki1

PRO192_-_FA_2024_-_Block_5_-_PE_3211.webp

  • Media owner Yuki1
  • Ngày thêm
+SpecFlight(code:String, duration:int,
schedule:String)
+getSchedule():String
+toString():String
+setData():void
+getValue():String
setData():void - Append the last digit of the duration to the begining of the code string.
getValue():String - Check if the schedule is "HCM" or "HN" then return code + "OK", otherwise return code + "DELAY".
The program output might look something like:
Enter code: VNR
Enter code: VNR
Enter code: VNR
Enter code: VNR
Enter duration: 2
Enter duration: 12
Enter duration: 2
Enter duration: 2
Enter schedule: HCM
Enter schedule: HCM
Enter schedule: HΝ
Enter schedule: CT
1. Test toString()
2. Test setData()
1. Test toString()
2. Test setData()
1. Test toString()
3. Test getValue()
3. Test getValue()
2. Test setData()
3. Test getValue()
1. Test toString()
2. Test setData()
Enter TC (1,2,3): 1
OUTPUT:
VNR, 2
VNR, HCM, 2
Enter TC (1,2,3): 2
OUTPUT:
2VNR, 12
Enter TC (1,2,3): 3
OUTPUT:
VNROK
3. Test getValue()
Enter TC (1,2,3): 3
OUTPUT:
VNRDELAY
Zoom
+ 100%
Close
Chưa có bình luận nào.

Thông tin

Category
PRO192
Thêm bởi
Yuki1
Ngày thêm
Lượt xem
7,291
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRO192_-_FA_2024_-_Block_5_-_PE_3211.webp
File size
195.2 KB
Dimensions
1920px x 813px

Share this media

Back
Bên trên Bottom