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

Which school are you into?

_novi_

Which school are you into?

_novi_

Solved

Posted on 2005-04-06

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

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

2 Comments

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

Again:

- 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

By clicking you are agreeing to Experts Exchange's Terms of Use.

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

Connect with top rated Experts

**13** Experts available now in Live!