import "cars"
- func CalculateCost(carsCount int) uint
- func CalculateWorkingCarsPerHour(productionRate int, successRate float64) float64
- func CalculateWorkingCarsPerMinute(productionRate int, successRate float64) int
func CalculateCost
func CalculateCost(carsCount int) uint
CalculateCost works out the cost of producing the given number of cars
func CalculateWorkingCarsPerHour(productionRate int, successRate float64) float64
CalculateWorkingCarsPerHour calculates how many working cars are produced by the assembly line every hour
func CalculateWorkingCarsPerMinute(productionRate int, successRate float64) int
CalculateWorkingCarsPerMinute calculates how many working cars are produced by the assembly line every minute
Generated by gomarkdoc