Created
October 19, 2023 18:29
-
-
Save ibuilder/b870e0f4e26453deb18f3d43ddadd6d3 to your computer and use it in GitHub Desktop.
Office Space Calculation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Import necessary libraries | |
# Define the number of employees and desired area per employee for each space | |
num_employees = { | |
'desks': 50, | |
'kitchen': 20, | |
'bathrooms': 35, | |
'phone_booths': 10, | |
'mothers_room': 5, | |
'reception': 15, | |
'private_offices': 10, | |
'conference_rooms': 20, | |
'shared_space': 75} | |
# Calculate the total area required | |
total_area = sum(num_employees.values()) | |
# Calculate the area allocation percentage for each space | |
space_allocation = {space: (area_needed / total_area) * 100 for space, area_needed in num_employees.items()} | |
# Print the calculated space allocationfor space, allocation in space_allocation.items(): | |
print(f"The ideal space allocation for {space} is {allocation}%.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment