Question
Can someone please help me create a code in python for this! Thank you! Trying to Get Some Exercise You have decided that you need
Can someone please help me create a code in python for this! Thank you! Trying to Get Some Exercise You have decided that you need to start eating better and getting some exercise. Since you like riding your bike when the weather is nice and you have access to stationary bike when the weather is not good, you decide to start cycling every day. Also you want to keep better track of the calories you have consumed throughout the day. At the end of the week you want to know the following: What is the total calories consumed and burned for each day? Assume that for every minute you are cycling you burn 10 calories. What is the deficit or difference between the number of calories you consume and burn? What is the average calories that you burn and consume? What day did you consume the highest amount of calories? What day did you burn the highest calories? What day did you consume the least amount of calories? What day did you burn the least calories? Every day you plan on logging in a notebook the total number of calories you consume (approximately) and how many minutes you spend on either or both bikes. At the end of the week you plan on loading all of these numbers into a program so that you can analyze the data. Program Requirements Your program will need to do the following: Feature a menu so that all you need to do is enter a letter and the program will perform the necessary task. Use the following letters to correspond to what the program needs to do: Menu Option Operation T Get Total Calories Consumed and Burned. This will also print out calories consumed and burned per day D Get the deficit or difference between the total calories consumed and burned A Get the averages H Get the highest calories consumed and burned and the corresponding days in which this happened L Get the lowest calories consumed and burned and the corresponding days in which this happened E Exit or exits the program Make sure that whatever choice you make from the menu that it is validated and will not cause the program to stop prematurely Allow you to pick numerous tasks before you are done with the program. HINT: you will need a loop here. Load both Cycling and Eating amounts when the program loads. In other words, you will not get prompted to load these values separately. Instead you will initialize your arrays with these numbers at the beginning of the program. Nice clean output. Utilization of modular programming. At the minimum you should have 5 modules.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started