Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var juryCount, presentationCount int
- fmt.Scanln(&juryCount)
- var totalScores = 0.0
- var presentation = ""
- fmt.Scanln(&presentation)
- for ; presentation != "Finish"; {
- var score, sumScores float64
- for i := 0; i < juryCount; i++ {
- fmt.Scanln(&score)
- sumScores += score
- }
- fmt.Printf("%s - %.2f.\n", presentation, sumScores / float64(juryCount))
- totalScores += sumScores
- presentationCount++
- fmt.Scanln(&presentation)
- }
- fmt.Printf("Student's final assessment is %.2f.\n", totalScores / float64(presentationCount * juryCount))
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement