Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #72.7K
I need help in pulling this program apart, and reformatting it to use functions that I didn't know i needed to implement until right now. * float calculate_time (4 parameters) finds the amount of hours between two times given. It should return 0 if the amount is less than 0. … |
|
The issue is that it doesn't seem as though the code isn't getting past the 3rd if-else statement, and even if the input is correct it will say invalid times and set the values to 0. I can't tell what the problem is. [CODE]#include <iostream> #include <string> using namespace std; … |