Can someone give me an idea about this program, i have no idea about it????

Posted on 2005-04-06
Last Modified: 2011-09-20
Write a program to read two integers with the following signifiance.

The first integer value represents a time of day on a 24 hour clock, so that 1245 represents quarter to one mid_day, for example
The second interger represents a time duration in a similar way, so that 345 represents three hours and 45 minutes.
This duration is to be added to the first time, and the result printed out in the same notation, in this case 1630 which is the time 3 hours and 45 minutes after 12.45

Typical output might be Start time is 1415. Duration is 50, end time is 1505
there are a few extra marks for spotting.
start time is 2300. Duration is 200, end time is 100.

Thanks alot
Question by:cuong5985
    LVL 8

    Expert Comment

    >>>>there are a few extra marks for spotting.

    Which school are you into?

    LVL 39

    Accepted Solution


    I already gave you a starter for that problem. I also told you how to proceed.


    - try to build the starter main function
    - resolve the compiler errors
       + by replacing ... by valid statements
       + by defining prototypes for the functions used in main
       + by implementing the new functions as far as you could
    - post compiler errors that you are not able to solve
    - post specific questions to *your* code

    You will not get someone here who makes your homework while you make no attempts to participate.

    Regards, Alex

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
    IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
    The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
    The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now