Vitali Kremez
  • Home
  • About
  • Contact
  • Cyber Security
  • Cyber Intel
  • Programming
  • Reverse Engineering
  • Exploit Development
  • Penetration Test
  • WIN32 Assembly
  • On Writing
    • Blog
    • LSAT
    • Photo
  • Honeypot
  • Forum

Let's Code: fitness calculator in python

9/18/2015

0 Comments

 
#!/usr/bin/env python

# Fitness Calculator
# Coded By Vitali


from datetime import datetime
now = datetime.now()
print "%s/%s/%s %s:%s:%s" % (now.month,now.day,now.year,now.hour, now.minute,now.second)
print "Welcome to Fitness Calculator!"

name = raw_input("Please Enter Your First and Last Name:")

exercise = input("How many calories have you burned today?")
meal = input("How many calories have you consumed today?")
goal = input("How many calories would you like to cut per day?")

total = exercise - meal

print "Good day%s, so your difference is %s calories, your goal is %s calories, and your meal is %s calories." % (name, total, goal, meal)

print "Thank you for using this Fitness Calculator!"
print "Please leave us your feedback!"

def feedback():
    print "This is the feedback zone!"    
answer = input("How do you rate it from 1 to 10?")
if answer < 6:
    print "Thank you! We will do my best to improve this application in future!"
else:
    print "Thank you! We are glad that you have enjoyed using this application!"

    

0 Comments



Leave a Reply.

    Author

    Vitali Kremez
    The Coder

    Archives

    January 2016
    December 2015
    November 2015
    October 2015
    September 2015

    Categories

    All

    RSS Feed

Powered by Create your own unique website with customizable templates.
  • Home
  • About
  • Contact
  • Cyber Security
  • Cyber Intel
  • Programming
  • Reverse Engineering
  • Exploit Development
  • Penetration Test
  • WIN32 Assembly
  • On Writing
    • Blog
    • LSAT
    • Photo
  • Honeypot
  • Forum