Complete the following Go code block so that it declares gra…
Complete the following Go code block so that it declares grades as a map that maps student names to their grades and print out all student names and their grades (DON’T type unnecessary spaces in your answers): grades := [maptype]{“Alex”: 93.2, “Bob”: 64.1, “Chris”: 70.5} for [namegrade] := [range] grades { fmt.Printf(“%s has a grade of %0.1f%%\n”, name, grade) } Expected output: Alex has a grade of 93.2% Bob has a grade of 64.1% Chris has a grade of 70.5%
Read Details