// Sample Go program — samplefiles.com
package main

import "fmt"

type Customer struct {
	ID      int
	Name    string
	Balance float64
}

func (c Customer) IsVIP() bool { return c.Balance >= 10_000 }

func TotalBalance(customers []Customer) (total float64) {
	for _, c := range customers {
		total += c.Balance
	}
	return total
}

func main() {
	customers := []Customer{{1, "Ada", 12_500}, {2, "Grace", 830.5}, {3, "Linus", 10_000}}
	for _, c := range customers {
		vip := ""
		if c.IsVIP() {
			vip = "VIP"
		}
		fmt.Printf("%-6s %10.2f %s\n", c.Name, c.Balance, vip)
	}
	fmt.Printf("Total: %.2f\n", TotalBalance(customers))
}
