Greetings! Ok if any of you read my earlier email you would have seen that: A) I am a newbie programmer. B) A Shadowrun gamer. C) In over my head making a SRCG (Shadowrun Character Generator) so with that in mind gave up making my python based SRCG. Instead I am making python Shadowrun utilities! The first of which was a program size and cost calculator for decker's utilities and skillsofts. (I always hated flipping back and forth in the book to figure it out). Thought I would let you see it and maybe critique? Be kind its first original program I have written. (Well thats not php or shell script).
code follows: ########################################################## #Module:SRprsize.py # #Description: Shadowrun program size and cost calculator # #Author: Jack Cruzan jcruzan at gmail dot com # #Date:01/18/05 # ########################################################### #get program's size rating = int(raw_input("What is the rating of the program you desire?")) ratingValue = rating**2 multiplier = int(raw_input("What is this programs multiplier?")) #determine the programs cost if rating < 4: print "The programs Availability is 2/7 days and costs:", rating*100 elif rating < 7: print "The programs Availability is 4/7 days and costs:", rating*200 elif rating < 10: print "The programs Availibility is 8/14 days and costs:", rating*500 else: print "The programs Availibility is 16/30 days and costs:", rating*1000 print "The program size is:", ratingValue*multiplier _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor