The microwave only takes seconds. Write to_seconds(minutes, seconds) to turn minutes and seconds into the total seconds: 1 minute 30 seconds is 90.
to_seconds(1, 30)→90to_seconds(0, 45)→45int to_seconds(int minutes, int seconds)int to_seconds(int minutes, int seconds) {
int total = 0;
// your code here: total is the minutes times 60, plus the seconds
return total;
}
Run tries the examples. When they look right, Submit.