Sha256: a4de09f8feba14aedc77c877251c5658f58e2ec1d6616e82721e7698e256cb15

Contents?: true

Size: 409 Bytes

Versions: 86

Compression:

Stored size: 409 Bytes

Contents

## Implementation

Define a single Go func, Cost, which calculates the cost
for a given list of books based on the defined discounts.

Use the following signature for func Cost:

```
func Cost(books []int) int
```
Cost will return the total cost (after discounts) in cents.
For example, for a single book, the cost is 800 cents, which equals $8.00.
Only integer calculations are necessary for this exercise.

Version data entries

86 entries across 86 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/go/exercises/book-store/.meta/hints.md
trackler-2.2.1.179 tracks/go/exercises/book-store/.meta/hints.md
trackler-2.2.1.178 tracks/go/exercises/book-store/.meta/hints.md
trackler-2.2.1.177 tracks/go/exercises/book-store/.meta/hints.md
trackler-2.2.1.176 tracks/go/exercises/book-store/.meta/hints.md
trackler-2.2.1.175 tracks/go/exercises/book-store/.meta/hints.md
trackler-2.2.1.174 tracks/go/exercises/book-store/.meta/hints.md
trackler-2.2.1.173 tracks/go/exercises/book-store/.meta/hints.md
trackler-2.2.1.172 tracks/go/exercises/book-store/.meta/hints.md
trackler-2.2.1.171 tracks/go/exercises/book-store/.meta/hints.md
trackler-2.2.1.170 tracks/go/exercises/book-store/.meta/hints.md
trackler-2.2.1.169 tracks/go/exercises/book-store/.meta/hints.md
trackler-2.2.1.167 tracks/go/exercises/book-store/.meta/hints.md
trackler-2.2.1.166 tracks/go/exercises/book-store/.meta/hints.md
trackler-2.2.1.165 tracks/go/exercises/book-store/.meta/hints.md
trackler-2.2.1.164 tracks/go/exercises/book-store/.meta/hints.md
trackler-2.2.1.163 tracks/go/exercises/book-store/.meta/hints.md
trackler-2.2.1.162 tracks/go/exercises/book-store/.meta/hints.md
trackler-2.2.1.161 tracks/go/exercises/book-store/.meta/hints.md
trackler-2.2.1.160 tracks/go/exercises/book-store/.meta/hints.md