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."
It's good to see original code. I think some people underestimate how much coding from scratch can help one benefit.![]()
Please post code in the Code Snippets forum: Classes and Code Snippets - CodeCall Programming Forum
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks