How in the world would I create a code for this...

Create a C++ console application that converts a time entered in minutes into either a hour/ minute format or into seconds.

The user interface of the program will accept the time in minutes and provide the user with a choice of converting this number either to the hour/minute format or into seconds. The output of the program should be similar to:

Result: 70 minutes equals 1 hour and 10 minutes
Please post the code you have so far. We are not going to do your homework assignment for you.
I agree with jsmith, but I will add one thing.
The best way to code is to think about how YOU would do the problem (not the computer) in a logical process, and then figure out how to tell the computer how to do that in code.
Do the first step, and then try some coding. If you still can't get it, post what you have here and we'll try to help.
EDIT: I'm sorry.
Last edited on
bluezor: We generally try not to provide code for people who ask questions that are "very simple" because that means they don't know how to write the code yet. It's better to try and guide them through the process and see how much they know rather than just provide code, otherwise they'll never be able to write code that they don't have an example of.
Topic archived. No new replies allowed.