A mobile phone app allows a user to press a button that starts a timer that counts seconds. When the user presses the button again, the timer stops. Draw a flowchart or write pseudocode that accepts the elapsed time in seconds and displays the value in minutes and seconds. For example, if the elapsed time was 130 seconds, the output would be 2 minutes and 10 seconds.

Respuesta :

Answer:

1. Start

2. Enter Elapsed time

3. Let T = elapsedTime

4. minute = T / 60

5. second = T % 60

6. Display minute "minutes and" second "seconds".

7. End

Explanation:

First the elapsed time is entered and it is assigned to T. Next, we find the number of minute by dividing the elapsedTime with 60 (60 seconds make a minute). Then we get the number of second by finding the remainder when the elapsedTime modulus 60 give us the result.

Finally, we display our result.

Ver imagen ibnahmadbello