Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need assistance with calculating the totals and incorporating the ANNUAL_PHYSICAL constant. The programming language is a stripped-down pseudolanguage. 2/2+100%+1 itemized list of the charges and
Need assistance with calculating the totals and incorporating the ANNUAL_PHYSICAL constant.
The programming language is a stripped-down pseudolanguage.
2/2+100%+1 itemized list of the charges and the overall total for this online order. Problem 2 An employee wellness program awards points for physical activity based on the following scale: \begin{tabular}{|l|l|} \hline Walking/running5,000to10,000stepseachday & 10 points per day \\ \hline 10,001 to 20,000 steps & 25 points \\ \hline \end{tabular} startmain cost integer LOWEST_STEP_LIMIT =5000 cost integer LOW_STEP_LIMIT =10000 cost integer MID_STEP LIMIT =20000 cost integer HIGH_STEP_LIMIT =30000 cost integer LOWEST_POINT_DAY =10 cost integer LOW_POINT_DAY 25 cost integer MID_POINT DAY =40 cost integer HIGH_POINT_DAY =50 cost integer ANNUL_PHYSICAL =250 integer pointsEarned integer totalphysical integer totalAthletic integer totalPoints integer stepsDay string physicalexam. string athleticEvent output "Welcome to the Step Calculator!" output " This program will calculate how many points the user earned for each day of acivity "total points of activity, points for physical exam and athletic events, and finally the tot \begin{tabular}{|l|l|} \hline 20,001 to 30,000 steps & 40 points \\ \hline Over 30,000 steps & 50 points \\ \hline \end{tabular} output "Please enter how many steps he/she has walked/run each day: " input stepsDone Additionally, the employee may also earn 250 points for having an annual physical exam with their doctor, and 100 points for participating in an athletic event, such as a 5K. Write a program that allows the employee to enter how many steps he/she has walked/run each day (assume that they walked the same number of steps every day), how many days they walked that number of steps, and then whether they had physical exam and whether they entered an athletic event (let the user respond to both of these by entering " Y " or " N "). The program then calculates and outputs how many points the user earned for each day of activity, total points for activity, points for physical exam and athletic event, if any, and finally the total points they earned. output "Please enter how many days you've walked that number of steps: " input stepsDay output "Have you had a physical exam " + ANNUAL_PHYSICAL + "? (y)" input physicalExam. output "Have you entered a athletic event " + ANNUAL_PHYSICAL + "? (y)" input athleticEvent if stepsEach >= LOWEST_STEP_LIMIT then pointsEarned = LOW STEP LIMIT then pointsEarned = MID_STEP_LIMIT then pointsEarned >= HIGH_STEP_LIMIT then pointsEarnedStep 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