An electric scooter battery charger is connected to the 230 V a.c. domestic mains supply.
The output of the charger is 48 V and it provides a d.c. charging current. The charging process automatically stops if the current exceeds 20 A.

Explain how the electrical components inside the charger can be chosen and connected together to provide this specific output and safety feature.