- Joined
- Jul 14, 2007
- Messages
- 5,066
- Reaction score
- 41
- Trophies
- 1
- Age
- 35
- Location
- Walking the path of heaven
- XP
- 2,552
- Country

Ok so I pretty much got this java program working except for one small detail.
The program is suppose to calculate a phone bill. I get all the right answers except one of them because it carries over and doesn't count it as the next day. The program starts at 23: 45 (11: 45PM) and ends at 00:20 (12:00AM). When calculating, it doesn't add correctly and I get a negative total which screws up my whole answer. I've been at it for an hour and can't figure out what to do. Think you can help? It has to be in military time.
Here is my source code....
[http://pastebin.com/wmHBrLJH
So can I get some help with this minor problem? I really need to get this done before the weekend so I could really use the help..
The program is suppose to calculate a phone bill. I get all the right answers except one of them because it carries over and doesn't count it as the next day. The program starts at 23: 45 (11: 45PM) and ends at 00:20 (12:00AM). When calculating, it doesn't add correctly and I get a negative total which screws up my whole answer. I've been at it for an hour and can't figure out what to do. Think you can help? It has to be in military time.
Here is my source code....
[http://pastebin.com/wmHBrLJH
So can I get some help with this minor problem? I really need to get this done before the weekend so I could really use the help..





