Question: Problem 2 - Python Coding Problem BEFORE YOU BEGIN CODING, model your program logic using either pseudocode or a flowchart ( or both ) .
Problem Python Coding Problem
BEFORE YOU BEGIN CODING, model your program logic using either pseudocode or a flowchart
or both
Submit your program logic in the folder with your completed code. Because this program uses functions to modularize the code, you should separate EACH function. Do NOT try to create a single
flowchart
pseudocode that captures the logic of all the functions.
o Pseudocode may be typed into a Word document or a text file.
o Flowcharts may be created using drawing shapes in a program such as Word or
PowerPoint.
Abstraction: Health Goals Tracker
Write a program that will allow the user to track any of three different healthrelated 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:
HEALTH GOALS MENU
Track Steps
Track Water
Track Sleep
Track Steps and water
Track Steps and Sleep
Track water and seep
Track A
What do you want to track today?
Enter number of steps:
Your results:
Your Steps: Goa: Goa not met.
Sample Input and Output for User Tracking All Activities:
HEALTH GOALS MENU
Track Steps
Track Water
Track sleep
Track Steps and water
Track Steps and Sleep
Track water and seep
Track A
What do you want to track today?
Enter number of steps:
Enter water in ounces:
Enter hours of sleep:
Your results:
Your Steps: Goal: Goa not met.
Your water: mathrm Goal: Goal met!
Your seep: Goa: Goa not met.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
