Question: Goal: Conditionally assign a value to a variable Assignment: In a fitness tracking application, users earn rewards based on the number of steps they take
Goal: Conditionally assign a value to a variable
Assignment: In a fitness tracking application, users earn rewards based on the number of steps they take in a day. Users should be congratulated when they exceed a certain number of steps, encouraging them to be more active. The number of steps a user takes is stored in an integer variable stepsTaken.
Write an if statement that outputs "Congratulations!" to the screen if stepsTaken is greater than
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
