Java Project Help

  • Thread starter Thread starter Rock Raiyu
  • Start date Start date
  • Views Views 1,091
  • Replies Replies 1
  • Join the GBAtemp community: it's free
    • 50% fewer ads
    • Reply alerts
    • Join the discussion
    • Watch & bookmark

Rock Raiyu

Clock Up
Member
Joined
Jul 14, 2007
Messages
5,066
Reaction score
41
Trophies
1
Age
35
Location
Walking the path of heaven
XP
2,552
Country
United States
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..
 

Site & Scene News

New Hot Discussed User Submitted