Computer Science

Welcome to a Computational Thinking (CT) Challenge



Abstract an Algorithm
Pseudo-Code

Sample Code in Python

Puzzle
Time Conversion

Using operators and variables to convert HMS <--> seconds

A friend of yours needs a program that can convert seconds into hours, minutes and seconds.
So 8410s will output 2h20m10s, 18630s will output 5h10m30s and 3670s will output 1h1m10s.
In pairs develop an algorithm to solve this problem and then write a program to carry out the conversion.



The sandbox below can be used to run the sample Python code or to play around with your own ideas.
Be careful of certain limitations of online IDEs compared to those downloaded to your devices.