# Lumen
#
# A basic light level calculation program
#
# Created as part of a tutorial for assisting Engineers
# to learn programming with Python
#
# Copyright (c) 2006 to Ted Bell ted dot bell at lineone dot net
# Distributed free and without warranty of any kind
# 


# Begin by estimating the number of fittings required.

e = input("Enter the light level required in Lux ")
l = input("Enter the length of the room ")
w = input("Enter the width of the room ")
a = l*w
f = input("Enter the bare lamp lumens per fitting ")
uf = 0.85 # we can amend this to generate a number at a later stage.
n = (e*a)/(f*uf)
print round(n)


# Now calculate the actual light level.

N = input("Enter actual number of luminaires to be used ")
    # we can use capital n here as Python treats n and N as two values.
llf = input("Enter light loss factor ")
    # we can revisit this at a later stage and break it down into parts.
E = (N*f*uf*llf)/a
    # Again we can use capital E here to distinguish it.
print E


