Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: daily time record & computation of hours work

  1. #1
    Junior Member
    Join Date
    Aug 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default daily time record & computation of hours work

    import java.io.*;
    public class workhours{
    public static void main (String args[]){
    try{
    BufferedReader breader=new BufferedReader(new InputStreamReader(System.in));
    String days[]={"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"};
     
     
    double Hours=0;
    Hours=8*6;	
     
    for (int i=0;i<6;i++){
    System.out.print(days  [i]);
    System.out.print("\nLog In: ");
    String In=breader.readLine();
    System.out.print("Log Out: ");
    String Out=breader.readLine();
     
    }
     
     
    System.out.print("The Total Hours Works is: "+Hours +"Hrs.");	
    }catch(IOException e){	
    }	
    }
    }


  2. #2
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    609
    My Mood
    Sleepy
    Thanks
    10
    Thanked 93 Times in 86 Posts

    Default Re: daily time record & computation of hours work

    Do you have a question?

  3. #3
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: daily time record & computation of hours work

    Welcome to the forum! Thanks for taking the time to learn how to post code correctly. If you haven't already, please read this topic to learn other useful info for new members. Please post properly indented code.

    Ask a specific question. We won't grade your code for you or otherwise attempt to determine why you've posted.

Similar Threads

  1. Re: Willing to volunteer 10 hours per week of programming time
    By fru1tfly in forum Java Theory & Questions
    Replies: 1
    Last Post: September 3rd, 2012, 02:24 PM
  2. Willing to volunteer 10 hours per week of programming time
    By Otiose Dodge in forum Paid Java Projects
    Replies: 6
    Last Post: August 27th, 2012, 01:09 PM