I am writing a computer program to calculate the number of gallons of water used per day in my household but I want to make sure I am doing the program right.

Ex. (toilet usage)
# of people in household:5
# of times a person flushes per day:5
# of gallons per flush:5

The total should be equal to the # of people in household * # of times a person flushes per day * # of gallons per flush, right?

correct.

Are you OK with the coding?

Yes, I'm okay with the coding.

Very good. Keep up the good work.

Yes, you are correct. To calculate the number of gallons of water used per day in your household, you can use the formula:

Total gallons = # of people in household * # of times a person flushes per day * # of gallons per flush

In your example, the calculation would be:

Total gallons = 5 (people in household) * 5 (times a person flushes per day) * 5 (gallons per flush)

Therefore, the total number of gallons of water used per day for toilet usage in your household would be 125 gallons.

If you want to calculate the total gallons for other water usage activities (like showering, washing dishes, etc.), you can apply a similar formula to each activity and then sum up the results to get the overall daily total.