Question: This assignment is from Introduction to Programming Using Visual Basic 10th edition. Visual Basic 2015 edition is preferred. Thank you for the help. 41. Triathlon
41. Triathlon The number of calories burned per hour by cycling, running, and swim- ming are 200, 475, and 275, respectively. A person loses 1 pound of weight for each 3500 calories burned. Write code to read the number of hours spent at each activity and then display the number of pounds worked off. A sample run is shown in Fig. 3.20. Electricity 2 Triathion Device: light bulb Wattage 100 Number of houro cycling. 2 Number of hours running 3 Number of houre owinming t Compute Weight Loss Hours used: 720 Prico por kWh in cents: 1265 Calculste Cost 0 6 pounds were lost Cost (n dollara):9.11 FIGURE 3.20 Possible outcome of Exercise 41. FIGURE 3.21 Possible outcome of Exercise 42
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
