How design angular linecap such as que-1

How achieve angular line cap such as in assignment-3 que-1??

Because we have only 3  types value in  linecap attribute. 1. Butt, 2. round, 3. square but no any angular..

Pl help!