เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

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.

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร

Introduction to Julia

ดูคอร์ส

คำแนะนำการฝึกหัด

  • 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.

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ

ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์

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

# Call the function on grades_array
____

println("The new grades are $(grades_array)")
แก้ไขและรันโค้ด