java + output screen + coding

I need a layout screen for output using system.out.println

the criteria consist of.
current date, SSN Number
Employee name
Blank
Enter the number of IN/OuT
Blank
Enter the in and out times
blank
Enter y or n if there is any sick times used
blank
Display total hours worked
display total regular pay
display any overtime pay
blank
total pay
total hours worhed
gambit77Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
lcwidingConnect With a Mentor Commented:
Not quite sure what you mean by "layout screen". If you mean the code to present the information as suggested, to System.out, it would be as follows:

System.out.println(currentDate  +" ," + SSNNumber);
System.out.println(employeeName);
System.out.println();
...

What are you looking for when you talk about "Enter the ..."? Do you also want code to read input and parse it? Why not use a dialog to input any needed values?
0
 
DrWarezzCommented:
Could you please specify the variables that need to be placed here???

[r.D]
0
 
DrWarezzCommented:
>"
Display total hours worked
display total regular pay
display any overtime pay
"

what are the formulas for this, etc..?
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
CEHJCommented:
This sounds like homework/classwork ...
0
 
objectsConnect With a Mentor Commented:
To display a prompt use:

System.out.print("Employee name: ");

To get input from the user use:

BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String input = in.readLine();

To output a line use:

int hours = 40;
System.out.println("Hours worked: "+hours);


That should get you started.
Let me know of you have any questions.
0
 
lcwidingCommented:
I woudl recommend splitting between me and objects.
0
 
DrWarezzCommented:
No disagreement from me.
0
All Courses

From novice to tech pro — start learning today.