Bắt đầu ngayBắt đầu miễn phí

Everyone wins

After the last exercise, you realize that you have the power not just to improve your own grades but the grades of everyone else. So why not use your skills to help others too?

The array of grades grades_array is available in your environment.

Bài tập này là một phần của khóa học

Introduction to Julia

Xem khóa học

Hướng dẫn bài tập

  • Create a mutating function named topstudents!(), which accepts an array x, and changes all the elements to "AAAA".
  • Call the function on the grades_array array.

Bài tập tương tác thực hành trực tiếp

Hãy thử làm bài tập này bằng cách hoàn thành đoạn mã mẫu này.

# Write a grade mutating function
____ ____(____)
	____
____

# Call the function on grades_array
____

println("The new grades are $(grades_array)")
Chỉnh sửa và Chạy Mã