Write an algorithm in pseudocode or a high-level programming language that implements the following design requirements:
- Initialize a counter for 'acidic days' to 0.
- Initialize a running total for the pH of 'safe days' to 0.0.
- Loop 7 times (representing days 1 to 7).
- In each iteration, prompt the user to input the pH level (as a decimal value) for the current day.
- If the pH level is strictly less than 6.0, output 'Day [number]: Acidic' (where [number] is the current day number) and add 1 to the acidic days counter.
- Otherwise, output 'Day [number]: Safe' and add the current pH level to the running total of safe days' pH.
- After the loop finishes:
- Output the total number of acidic days with an appropriate message.
- Calculate and output the average pH of the safe days. To prevent division by zero, the average must be output as 0.0 if there were no safe days.