A random room allocation system in go.
- Store office space allocation to a json file
- Store male hostel allocation to a json file
- Store female hostel allocations to ja son file
- Store unallocated employee data to a json file
The code has a pre-defined number of offices for allocation and a predefined number of hostels to allocate to male and female fellows who opted for it.
Offices prepopulated are:'Carat', 'Anvil', 'Crucible', 'Kiln', 'Forge', 'Foundry', 'Furnace', 'Boiler', 'Mint', 'Vulcan'
Malerooms prepopulated are:'topaz', 'silver', 'gold', 'onyx', 'opal'
Femalerooms prepopulated are: 'ruby', 'platinum', 'jade', 'pearl', 'diamond'
Basic Conditions:
1. No staff should be allocated to Male or Female Rooms
2. No Male or Female room should exceed 4 persons
3. No office allocation should exceed 6 persons
BOLA AHMED M FELLOW Y
JOHN OBI M FELLOW N
ISSAC NNADI M STAFF
CRIBS JANE F FELLOW Y
go build main.go
go run main.go