You can implement these Problem statements in Labview.
Problem 1 -
Create a while loop running at 1 loop/sec rate. In each iteration, the current time is evaluated against the start/stop time control input. Based on the status of 'Pump Status' shared variable , registers for On time & Off Time will be incremented. The loop stops when current time>Stop Time input.
Attached the VI snapshot for reference. Try wiring by yourself for other cases in case structures.
Let me know whether it solves your issue.
What issue are you facing with this requirement? Refer to 'analog input continuous samples ' example in Labview Help Find Example to find a sample VI for this application. You can log the data acquired in a text file using I/O VI & determine flow/day.