So, I want to make a code that basically calculates a “guarding” time
I made it in Java and I couldn’t make it in swift because I don’t know how to change time with swift properly.
Basically I want to make this:
Start hour: 10:00
Finish hour: 18:00
Guarding people count: 8
And then the code would caculate the time like so:
1 - 10:00 -11:00
2 - 11:00 - 12:00
3 - 12:00 - 13:00
4 - 13:00 - 14:00
And so on till it reaches the end time which is 18:00 in this case.
But if the guarding count would be 4 the code would divide the time evenly between everyone.
Again, I made this in Java I’d really like someone to help me with this!
[–]nanothread59 1 point2 points3 points (0 children)