CSD201_-_HCM_-_BST_-_01_3459.webp
Minthep

CSD201_-_HCM_-_BST_-_01_3459.webp

  • Media owner Minthep
  • Ngày thêm
Student with highest GPA: (S003, David, 3.9,CS,200.0)
f3(): (2.5 points)
To complete the f3 requirement, students need to:
⚫ Count and display the number of students with GPA greater than or equal to 3.5
Implement the countByGPA() method in the StudentBST structure
Expected output consists of only a single number (the count of students with GPA ≥ 3.5), for example:
4
f4(): (2.5 points)
To complete the f4 requirement, students need to:

Implement the removeById() function in the ScholarshipList structure to remove a student
from the scholarship list
Implement the updateStudentBalance() function in the StudentBST structure to update the
amount in the student's account
Process scholarships: remove students from the scholarship list and add the scholarship
amount to the student's account in the BST
Expected output to check your code:
Student BST (Inorder Traversal):
(S001, John,3.8,CS,100.0)
(S002, Mary, 3.5,Business,150.0)
(S004,Sarah,3.2,IT, 120.0) (S005, Michael, 3.7,Engineering, 180.0)
(S003, David,3.9,CS,200.0)
Scholarship List:
(S003, David,3.9,CS,500.0) (S001,John, 3.8,CS,600.0) (S005, Michael, 3.7,Engineering,450.0)
Student BST (Inorder Traversal):
(S001, John, 3.8,CS,700.0)
(S002, Mary,3.5,Business,150.0)
(S004,Sarah,3.2,IT, 120.0) (S005, Michael, 3.7,Engineering,630.0)
Scholarship List:
Empty
(S003,David,3.9,CS,700.0)
4/4
Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
CSD201_-_HCM_-_BST_-_01_3459.webp
File size
495.4 KB
Dimensions
1220px x 2712px

Share this media

Back
Bên trên Bottom