Question: Create the following Go programs: (1) The Triathlon Problem: The number of calories burned per hour by cycling, running, and swimming are 225, 450, and

Create the following Go programs:

(1) 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.

(2) The Copy Cost Problem: Leo's Print Shoppe charges 10 cents per copy for the first 200 copies and 5 cents and per copy for each additional copy. Write a program that asks for the customer's name and how many copies they need. Your program should output the customer's name and the total cost.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!