🔖 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

The goal of this activity is to expand on your code from Old Faithful: Part 1.

Write a C++ program that reads in data about Old Faithful from a CSV file. The program should then create a new CSV file which includes all of the original columns plus one new calculated column.

✅ 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).
  • Create a new file called faithful_updated.csv that adds another column to the original CSV file.
    • The new column should be called “Short Wait Time”.
    • If the eruption wait time is less than or equal to 60 minutes, the value should be T.
    • If the eruption wait time is greater than 60 minutes, the value should be F.

📋 Dev Notes

N/A

🖥️ Example Output

In addition to the output below, the program should write a new CSV file to disk as per the Acceptance Criteria.

./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.
 
Writing a new CSV file called faithful_updated.csv.

📘 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