All of the above.
As part of a private pilot exam, you do a sample pencil calculation to show you grasp the fundamentals. But in practice, you'll probably do it digitally. And an airline dispatcher prepares W&B for every flight, probably optimizing cg for best efficiency.