You're working on a file system implementation in C++ and need to calculate how much disk space a file actually occupies when stored on disk.
For a file of 1500 bytes on a disk with 512-byte clusters:
Implement the compute_size_on_disk function in C++ that calculates the total disk space used by a file given the cluster size and file size (in bytes). Do not include a main() function; your code will be wrapped automatically.
1500 bytes requires 3 clusters of 512 bytes each, totaling 1536 bytes.
2048 bytes fits exactly in 2 clusters of 1024 bytes.
513 bytes requires 2 clusters because one cluster (512 bytes) is insufficient.