Design a Student Grade Tracker

GolangBeginner
Practice Now

Introduction

In this challenge, you are asked to create a simple grade management system to track student performance across different subjects using a multidimensional array in Golang. As a teaching assistant, you need to implement this system to manage student grades effectively.

Design a Student Grade Tracker

As a teaching assistant, you need to create a simple grade management system to track student performance across different subjects using a multidimensional array in Golang.

Tasks

  • Create a 3x4 two-dimensional integer array named studentGrades
  • Initialize the array with realistic grade values between 0-100
  • Print out the entire grade tracking array

Requirements

  • Use the file ~/project/grade_tracker.go
  • Create a 3x4 two-dimensional array representing 3 students and 4 subjects
  • Grades must be integers between 0 and 100, choose by yourself
  • Use array initialization list method to populate the grades
  • Print the entire array using fmt.Println()

Examples

Example output:

[[85 92 78 90] [75 88 95 82] [90 79 85 88]]

Hints

  • Remember to use square brackets [][]int for two-dimensional array declaration
  • Use nested initialization lists to set values
  • Check the Lab section on two-dimensional array initialization
✨ Check Solution and Practice

Summary

In summary, this challenge requires you to design a student grade tracking system using a 3x4 two-dimensional integer array in Golang. You need to initialize the array with realistic grade values between 0-100 and then print out the entire grade tracking array.