Calculate: This function must be called from main() from within the loop.

For each month, calculate the amount of interest to be paid that month (adding this into balance before calculating minimum payment), total of interest paid, amount of minimum payment due for the month, and updating new balance.
If the minimum payment is less than $15.00 then set it at $15.00 if you owe at least $15.00 or the minimum payment will be just what you owe if you owe less than $15.00.
Output: This function must be called from main() from within the loop. There needs to be a separate function to output the table heading. Also output the information input from the file.
There needs to be a separate function to output month, balance at the end of the month, interest paid that month, minimum payment for that month, and the sum of amount of interest paid so far.

To accomplish this task, you need to break it down into smaller steps and write functions for each step. Here's a breakdown of the steps you should follow:

1. Start by creating a main() function. This function will act as the entry point for your program and will contain the loop.

2. Inside the main() function, call the necessary functions to input the information from the file. You should create a separate function for this step.

3. Create a separate function to output the table headings. This function will be called from within the main() function, before the loop starts.

4. Implement a function called calculate() which takes the necessary parameters (such as balance, interest rate, and minimum payment rate) and calculates the amount of interest, total interest paid, minimum payment, and updates the new balance. This function should be called from within the loop in the main() function.

5. Inside the calculate() function, implement logic to ensure that the minimum payment is at least $15.00. If the balance is greater than $15.00, set the minimum payment to $15.00. Otherwise, set it to the remaining balance.

6. Implement a separate function called output() which takes the month, end balance, interest paid, minimum payment, and total interest paid as parameters. This function will be called from within the loop in the main() function to output the information for each month.

7. Finally, call the necessary functions from within the main() function in the following order:
- Function to input information from the file
- Function to output the table heading
- Loop through each month and call the calculate() and output() functions

This breakdown of steps should help you structure your code and ensure that each task is handled by a separate function.