Question: Hi please help give the correct program Write a program that will allow the user to track any of three different health-related activities for a

Write a program that will allow the user to track any of three different health-related activities for a day: steps taken, water consumed, and hours of sleep. Your program should present the user with a menu of choices that will allow them to track any of the activities individually or in combinations. Your program should prompt the user to enter data for the desired goals. It should then compare the data against the goals for the activities (shown in the table below) and report whether the goal was achieved or not. You may assume that steps and water will be entered as whole numbers, but sleep may be entered as a decimal. For full credit, your program functionality should be distributed into functions that help to minimize the amount of redundancy in your code. Sample input and output are shown on the next page. Sample Input and Output for User Tracking Steps: Sample Input and Output for User Tracking All Activities: 3) Track sleep 4) Track Steps and water 5) Track Steps and sleep 6) Track water and Sleep 7) Track A11 What do you want to track today? 1 Enter number of steps: 7450 Your results: Your Steps: 7,450 Goal: 10,000 Goal not met. Sample Input and Output for User Tracking All Activities
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
