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

 c++ Question 12 (25 points) In this question, we will calculate
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 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

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!