Warm-up 1 Solution Part D: Two sample runs for program 1b (exercise planner) SAMPLE RUN #1 ====================================================== How many calories do you want to burn this week? 3500 Enter percent from running: 15 Enter percent from biking: 40 Enter percent from weight lifting: 10 Enter percent from dancing: 35 Here are the calories to burn and hours required for each activity: running: 525 calories, .75 hours biking: 1400 calories, 2.15 hours weight lifting: 350 calories, 1.167 hours dancing: 1225 calories, 3.0625 hours total exercise time: 7 hour(s) and 8 minute(s) average time/activity: 1 hour(s) and 47 minute(s) COMPUTATION EXPLANATION: ------------------------------------------ for running: 525 calories = .15 * 3500, .75 hours = 525 / 700 (cals/hour) similar for each of the other activities total exercise time = .75 + 2.15 + 1.167 + 3.0625 = 7.1295 hours 7.1295 hours = 7 hours and (.1295 * 60 = 7.77) 8 minutes average time = 7.1295 hours / 4 = 1.782375 = 1 hour and (.782375 * 60 = 46.9425) 47 minutes SAMPLE RUN #2 ==================================================== How many calories do you want to burn this week? 1253 Enter percent from running: 25 Enter percent from biking: 25 Enter percent from weight lifting: 25 Enter percent from dancing: 25 Here are the calories to burn and hours required for each activity: running: 313.25 calories, .4475 hours biking: 313.25 calories, .482 hours weight lifting: 313.25 calories, 1.044 hours dancing: 313.25 calories, .783 hours total exercise time: 2 hour(s) and 46 minute(s) average time/activity: 0 hour(s) and 42 minute(s) NOTE: Actual results from running a program solution might vary due to using more precision values. Your program can display real numbers with the default precision of the data types used.