CSD201_-_PE_-_SP_2024_1489.webp
Secre_86

CSD201_-_PE_-_SP_2024_1489.webp

  • Media owner Secre_86
  • Ngày thêm
void addLast(String xProducer, int xWeight, int xPrice). Note: xWeight and xPrice must be bigger
void f1()-1 Do not edit this method. Your task is to complete the addLast(...) method above only.Output in the file f1.txt must be the following:
,6,7) (C,4,5) (1,5,8)
void f2() -There are 2 given Laptop objects v, w in this function. Suppose the list contains at least 3 elements. Write statements to insert v and w to the list so that w will be the 2nd, v will be the 3rd node. Output in the file f2.txt must be the following:
4,7) (E,9,2) (Q,7,6)
4,7) (W,1,7) (V,8,9) (E,9,2) (Q,7,6))
1
void f3() - Delete the node holding the heaviest Laptop (maximum weight). If there are more than one node satisfying the requirement, delete the last of them. Output in the file f3.txt must be the
90%

Close
Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
CSD201_-_PE_-_SP_2024_1489.webp
File size
112.9 KB
Dimensions
748px x 582px

Share this media

Back
Bên trên Bottom