1/10: This code should create a Venue
struct with a maximum capacity, plus a method to make bookings.
Remember to put your properties before your methods.
if people > maximumCapacity {
} else {
struct Venue {
}
func makeBooking(for people: Int) {
}
var maximumCapacity: Int
print("The venue is booked!")
}
print("Sorry, we can only accommodate \(maximumCapacity).")
Link copied to your pasteboard.