Question: c++ Question 12 (25 points) In this question, we will calculate the total distance a snail travels over a sequence of days. Write a program
Question 12 (25 points) In this question, we will calculate the total distance a snail travels over a sequence of days. Write a program that asks the user to enter the number of inches a snail traveled in each day. The numbers should be entered in separate lines, and end with -1 (to indicate the end of the sequence). After reading the numbers, your program should print the total distance the snail traveled. This distance should be printed in a (miles, yards, inches) format Note: You may use the following facts: I foot = 12 inches I yard - 3 feet
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
