Given the internal pressure, compute force on the end cap which is your top plate holding back pressure. Divide this by the number of bolts intended to be utilized in the end cap. This is the force that each bolt shall experience.
I would carry a factor of safety of three. Presumably you are to use some sort of Grade 8 bolt, so SAE J429 will come it at around 130, 150 ksi yield and tensile strength. Use 43 ksi as your allowable stress and compute the cross sectional area given the bolt force above. Now compute the resulting diameter from the area. This will represent the nominal bolt size allowed in the design.
Go to the Machinist Handbook or use a thread program. Specify the closest commercially available bolt GREATER than the said allowable diameter. This will most likely be a UNC thread form, although it could be a UNF if you need more length of screw.
Your next step is to determine the length of screw. This is specified as the shear area per screw. You can use the Machinist Handbook or use the threading program. I use a shear stress of 0.577 that of normal; compute the area and divide through by the shear area PER UNIT LENGTH of thread. This is the resulting length of screw. Pick a length round off to the nearest quarter inch OVER the theoretical length.
Now you know. Without numbers to the problem, this remains a philosophical discussion. No doubt others will have different approaches.
Kenneth J Hueston, PEng
Principal
Sturni-Hueston Engineering Inc
Edmonton, Alberta Canada