Hi so I just need help with this little bit in this crappy little python program. This is what I have got so far:
hangoverA = int(2200000)
rolemodelsA = int(1005000)
SHHA = int(4000000)
skyfallA = int(1250000)
PGA = int(1500000)
shrekA = int(800000)
hello = raw_input("Hello and WELCOME to the Movie Downloader! To start, press ENTER...")
list1 = raw_input("Press ENTER for the list of movies you can download...")
print ""
print "1: The Hangover (2200MB)"
print "2: Role Models (1005MB)"
print "3: Summer Heights High (The WHOLE Series) (4000MB)"
print "4: Skyfall (1250MB)"
print "5: Parental Guidance (1500MB)"
print "6: Shrek (800MB)"
print ""
print "Note: THERE IS A MAXIMUM OF 1 COPY OF EACH MOVIE..."
hangover = int(raw_input("How many copies of 'The Hangover' would you like to download?: "))
rolemodels = int(raw_input("How many copies of 'Role Models' would you like to download?: "))
summerheightshigh = int(raw_input("How many copies of 'Summer Heights High' would you like to download?: "))
skyfall = int(raw_input("How many copies of 'Skyfall' would you like to download?: "))
parentalguidance = int(raw_input("How many copies of 'Parental Guidance' would you like to download?: "))
shrek = int(raw_input("How many copies of 'Shrek' would you like to download?: "))
print ""
internet_speed = int(raw_input("How many KB download p/sec on your computer? "))
print ""
hangoverSPEED = hangoverA/internet_speed
rolemodelsSPEED = rolemodelsA/internet_speed
SHHASPEED = SHHA/internet_speed
skyfallSPEED = skyfallA/internet_speed
PGASPEED = PGA/internet_speed
shrekSPEED = shrekA/internet_speed
if hangover >= 1:
print "It will take", hangoverSPEED, "seconds to download 'The Hangover'"
if hangoverSPEED > 60:
print "This can also be written as", hangoverSPEED/60, "minutes."
print ""
if rolemodels >= 1:
print "It will take", rolemodelsSPEED, "seconds to download 'Role Models'"
print "This can also be written as", rolemodelsSPEED/60, "minutes."
print""
if summerheightshigh >= 1:
print "It will take", SHHASPEED, "seconds to download 'Summer Heights High'"
print "This can also be written as", SHHASPEED/60, "minutes."
print""
if skyfall >= 1:
print "It will take", skyfallSPEED, "seconds to download 'Skyfall'"
print "This can also be written as", skyfallSPEED/60, "minutes."
print ""
if parentalguidance >= 1:
print "It will take", PGASPEED, "seconds to download 'Parental Guidance'"
print "This can also be written as", PGASPEED/60, "minutes."
print ""
if shrek >= 1:
print "It will take", shrekSPEED, "seconds to download 'Shrek'"
print "This can also be written as", shrekSPEED/60, "minutes."
print ""
So basically, the program at the moment gets the user to choose certain movies and then type their internet speed. It will then calculate how long it will take for each movie to download but I also want it to add up all of the SELECTED movie times and put it in an overall time but I can't figure out how to do it ... Please help! Thanks
