Modeling question - flatten part of the cylinder
I didn't know this Bool Tool addon before. Did some research in Google, found out this addon is included in v2.78

Enable this addon under File > User Preferences > Add-ons > Bool Tool


Select the rectangle first, then select the cylinder, use the Difference operation and got the below result.