wes d2a2ba9e15 first commit 4 år sedan
..
README.md d2a2ba9e15 first commit 4 år sedan
code.cpp d2a2ba9e15 first commit 4 år sedan
unitTest.cpp d2a2ba9e15 first commit 4 år sedan

README.md

Convert Hours and Minutes into Seconds

by Matt tags: language_fundamentals, math

Summary

Write a function that takes two integers (hours, minutes) and converts them into seconds. Examples convert(1, 3) ➞ 3780 convert(2, 0) ➞ 7200 convert(0, 0) ➞ 0 Notes Don't forget to return the result. If you get stuck on a challenge, find help in the Resources tab. If you're really stuck, unlock solutions in the Solutions tab.

Instructions

Write a function that takes two integers (hours, minutes) and converts them into seconds.

Examples

convert(1, 3) ➞ 3780

convert(2, 0) ➞ 7200

convert(0, 0) ➞ 0

Notes

  • Don't forget to return the result.
  • If you get stuck on a challenge, find help in the Resources tab.
  • If you're really stuck, unlock solutions in the Solutions tab.