C++ Distance Program

pramdut

The following are the series of steps designed for a program. (using only basic loops, no arrays/functions)

A. Display a welcome message: “Welcome to the Distance Tracker’

B. Ask the user for the number of months they would like to track

C. For each month

  1. Ask the user for the distance travelled (in miles)
  2. Add the distance travelled to a running total
  3. If the user is entering data for more than 1 month, indicate with a message to the user whether or not the distance travelled for the current month is more or less than the distance travelled in the last month.

D. Inform the user of the total amount of miles that they travelled.

    • 8 years ago
    • 5
    Answer(2)

    Purchase the answer to view it

    • miles.cpp

    Purchase the answer to view it

    NOT RATED
    • cprogram.rar