Course Statistics Simulation

Report a typo

Now you are a professor at the university. You have 10 students registered for your course. Let's create a simple grade generator in the range of [0, 100) and calculate the average of the students' performances in your course.

Note: use random floats to generate random grades

The input is the Seed number, and the output is the floating number with two decimal numbers.

Sample Input 1:

100

Sample Output 1:

55.56
Write a program in Go
package main

import (
"fmt"
"math/rand"
)

func main(){
var seed int64
fmt.Scanln(&seed)
rand.Seed(seed)

// put your code here

fmt.Printf("%.2f\n", ?)
}
___

Create a free account to access the full topic