Answer to Question #173697 in Python for Chandana

Question #173697

I am trying to write a python program that illustrates my knowledge of CS Concepts. I want to specifically make a "calories burned calculator that has a menu with several different exercises. I want the user to pick one of the exercises, then I want them to put in their weight, age, and height, and from that information I would like a number of calories that would have been burned for that specific activity. The data doesn't need to be accurate, I will change that myself, I just need a basic python program that can run those operations.

As a minimum, the program needs:

to be programed solely in Python

Use a data structure (array, objects, files, database)

Have a interface for the user (Tkinter, pygame, command - line menu)

Solve the problem of how many calories you burned with each exercise relative to your weight, age, and height

Shouldn't crash under a typical load



1
Expert's answer
2021-03-20T05:07:44-0400
print('Calorie burn information by exercise:')

def selectExcercise(argument):
                    switcher = {
                            1: 'yoga burns 100c in 30 days',
                            2: 'Jim burns 200c in 30 days',
                            3: 'Running burns 300c in 30 days',

                                }




if __name__ == "__main__":
    print('Please enter your weight:')
    input_a = input()

    print('Please enter your age:')
    input_b = input()

    print('Please enter your height:')
    input_c = input()

    print('enter 1: yoga burns 100c in 30 days')
    print('enter 2: Jim burns 200c in 30 days')
    print('enter 3: Running burns 300c in 30 days')
    argument = 3
    selectExcercise(argument)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS