Question: Using the vim editor, create Go programs that solve the following problems: The Triathlon Problem: The number of calories burned per hour by cycling, running,
Using the vim editor, create Go programs that solve the following problems:
The Triathlon Problem: The number of calories burned per hour by cycling, running, and swimming are 225, 450, and 275, respectively. A person loses 1 pound of weight for each 3,800 calories burned. Write a program to request the number of hours spent at each activity and then display the number of calories burned and the number of pounds worked off.
Additional comments throughout the program should be included where appropriate.
File should be run as text files with ".go" extensions and Show output.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
