🔖 Background Information

Old Faithful is a geyser in Yellowstone National Park which has the uncommon characteristic that its eruption schedule can be predicted with regularity. It has only lengthed the time between eruptions by about 30 minutes in the last 30 years (Yellowstone National Park, 2024).

🎯 Problem Statement

Write a C++ program that reads in data about Old Faithful from a CSV file. The program should calculate the average eruption length and average eruption wait time for the geyser.

✅ Acceptance Criteria

  • Use this dataset for this activity. Each row represents an observed eruption of the Old Faithful Geyser in Yellowstone National Park. The eruptions column represents the duration of the eruption in minutes, and the waiting column represents the duration in minutes until the next eruption (Härdle, 1991).
  • Print the average eruption length and average eruption wait time for the geyser to the console.

📋 Dev Notes

N/A

🖥️ Example Output

./faithful.out
 
Enter the path to the file: ./faithful.csv
 
The average eruption length is XXX minutes.
The average eruption wait time is XXX minutes.

📘 Works Cited

Härdle, W. (1991). Smoothing Techniques With Implementation in S. Springer. https://doi.org/10.1007/978-1-4612-4432-5
Yellowstone National Park. (2024). Old Faithful - Yellowstone National Park (U.S. National Park Service). https://www.nps.gov/yell/planyourvisit/exploreoldfaithful.htm