Question: Problem 2 - Python Coding Problem BEFORE YOU BEGIN CODING, model your program logic using either pseudocode or a flowchart ( or both ) .

Problem 2- 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 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:
----- HEALTH GOALS MENU
Track Steps
Track Water
Track Sleep
Track Steps and water
Track Steps and Sleep
Track water and s1eep
Track A11
What do you want to track today? 1
Enter number of steps: 7450
Your results:
Your Steps: 7,450 Goa1: 10,000 Goa1 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 s1eep
Track A11
What do you want to track today? 7
Enter number of steps: 8850
Enter water in ounces: 72
Enter hours of sleep: 7.5
Your results:
Your Steps: 8,850 Goal: 10,000 Goa1 not met.
Your water: }72\mathrm{ Goal: 64 Goal met!
Your s1eep: 7.50 Goa1: 8.00 Goa7 not met.
Problem 2 - Python Coding Problem BEFORE YOU

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!