Not sure how to go about doing this:
: Roll an arbitrary sized die three times and total the rolls together. Ask the user for how
many sides the die should have. Then use the rand() function to simulate rolling the die three times.
Report the three values and total to the user.
It is your homework, intended to help you to learn.
Do you know how to get an integer from the user?
Do you know how to show a number to the user?
Do you know how to use the rand() function?
Do you know how to add three numbers together?
If you know any of those, then do them.
Show what you achieved and then we can think of the next step.