b0sc / college

Practical Guide to course subjects of CSIT, BIT, BCA, BTech, CE, SE, CS...
GNU General Public License v3.0
2 stars 5 forks source link

Refactor timediff program for improved readability and maintainability #5 #18

Closed jeevanghimire closed 1 week ago

jeevanghimire commented 1 week ago

Fixed Issue #5

Describe your changes

This pull request introduces a program written in C and C++ to read two time inputs in 24-hour format (hours, minutes, and seconds), compute the time difference between the two inputs, and add a specified number of seconds to one of the time inputs. The program carefully handles edge cases, such as when the time crosses midnight or when the first input time is greater than the second one.

The following functionalities have been added:

Context

Checklist before requesting a review

axyut commented 1 week ago

Everything looks great! Please include a screenshot of the terminal recreating the output you wrote(even though copying the output contents is better, this time in all the PRs we require a photo of output in the README.md Output Section), you can store the picture inside assets folder.

jeevanghimire commented 1 week ago

@axyut its done ;)