Answer:
(i) Calculation:
1 GB = 1000 MB
Number of videos that could be stored = (1 GB / 100 MB) = 10
Therefore, William can store 10 videos on his computer if each video is 100MB in size.
(ii) Algorithm using pseudocode:
Ask the user to input the file size in megabytes.
Multiply the file size by 1,000,000 to convert it to bytes.
Print the result in a user-friendly format by dividing the bytes by 1,048,576 and rounding to two decimal places, and adding "MB" and "bytes" to the output.
Pseudocode:
Input file_size_in_mb
Set bytes = file_size_in_mb * 1000000
Set result = round((bytes / 1048576), 2)
Output "There are " + result + " MB " + bytes + " bytes".