Closed Thread
Results 1 to 3 of 3

Thread: Stepping Stone!

  1. #1
    anix's Avatar
    anix is offline Newbie
    Join Date
    Jan 2009
    Posts
    15
    Rep Power
    0

    Stepping Stone!

    Hey guys! just thought i'd share a little progress on my programming ventures.
    I am very excited about this little program i made because i can really call it my own. I've been coding with tutorial guidelines, writing programs that don't really have a purpose other than learning for a couple weeks now. This program though was all thought up by me and actually has a purpose.

    i know its simple but everyone has got to start somewhere





    Code:
      print "*****Semester Average Calculator***** "
    print "___________________________"
    # the long underscore lines are just for look
    
    term1 = float(raw_input ("Enter your grade for the first 9 weeks:"))
    print "_____________________________"
    
    term2 = float(raw_input ("Enter your grade for the second 9 weeks:"))
    print "_____________________________"
    
    exam = float(raw_input("Enter your mid-term exam grade:"))
    print "_____________________________" 
    
    average = (term1*4.5) + (term2*4.5) + (exam/1) 
    
    grade = (average/1000) * 100
    print grade 
    
    if grade > 90:
    	print "You are doing great! keep up that A"
    elif grade > 80:
    	print "Good work! you have a B"
    elif grade > 70:
    	print "Not too bad, but you can do better than a C"
    elif grade > 60:
    	print "you are on the verge of failing! work harder.  get better than a D"			
    elif grade > 50:
    	print "You have an F. If you do not do extremely well next semester you fail this course."

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    PythonPower's Avatar
    PythonPower is offline Programming Professional
    Join Date
    Feb 2009
    Posts
    228
    Rep Power
    13

    Re: Stepping Stone!

    It's good to see original code. I think some people underestimate how much coding from scratch can help one benefit.

  4. #3
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: Stepping Stone!

    Please post code in the Code Snippets forum: Classes and Code Snippets - CodeCall Programming Forum

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Rosetta Stone Alternative
    By ki4jgt in forum General Programming
    Replies: 3
    Last Post: 10-18-2010, 01:59 PM
  2. Game - stone,paper and scissor
    By Turk4n in forum Java Tutorials
    Replies: 14
    Last Post: 01-12-2009, 12:38 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts