I am so confused and so very desperate for help
Help me please. I have no idea how I'm supposed to do this. So I've been working on this code, and (to me at least) it's very confusing. So the input is the degrees that the hour hand has moved on a clock, and I have to find the degrees the minute hand has moved from the current hour. I have been working on this for two days now, and I have tried sooooooooooooooo many things. I tried finding the remainder of the input divided by 40, and multiplying that by 3/2, then multiplying by 6. I tried seperating the degrees into hours and minutes (unsuccessfully). None of these work. I don't have a legit code to show you, because all of them are faulty. I have no idea what to do. Please help me.
Your question is a little vague, are you trying to find the number of degrees between the minute hand and hour hand when the hour is at a certain degree?
If so, the answer is fortunately fairly simple:
hours * 30, since a full circle is
360 degrees, every hour is worth
360 / 12 = 30.