1 Replies - 285 Views - Last Post: 06 June 2014 - 09:07 PM Rate Topic: -----

#1 joandinoy  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 06-June 14

making payroll form using java language but its like framing form

Posted 06 June 2014 - 07:46 PM

import java.util.Scanner;
public class Exercise1{

public static void main(String[] args) {

String employeeName, employeeNumber, position, department ;
double otpay, salary, deduction, hrs, rate ;
Scanner input = new Scanner (System.in);

System.out.println ("_______________________________________________________");
System.out.println ("|                   DINOY CORPORATION                  |");
System.out.println ("|                        PAYSLIP                       |");
System.out.println ("|   Period Covered : Febuary 1 - Febuary 15, 2006      |");
System.out.println ("|______________________________________________________|");
System.out.println ("|Employee No:              Position:                   |");
System.out.println ("|Employee name:            Department:                 |");
System.out.println ("|______________________________________________________|");
System.out.println ("|         EARNINGS         |        DEDUCTION          |");
System.out.println ("|__________________________|___________________________|");
System.out.println ("|Basic Salary:             | No. of Hours:             |");
System.out.println ("|      No of Hours:        | Rate per Hour:            |");
System.out.println ("|      Rate per Hour:      | Late/Absences:            |");
System.out.println ("|Overtime Pay:             | Tax Withheld:             |");
System.out.println ("|Insentive:                | SSS:                      |");
System.out.println ("|Honoratium:               | Pag-Ibig:                 |");
System.out.println ("|Ecola:                    | PhilHealth:               |");
System.out.println ("|Others:                   | Others:                   |");
System.out.println ("|__________________________|___________________________|");
System.out.println ("|GROSS INCOME:             |TOTAL DEDUCTION:           |");
System.out.println ("|__________________________|___________________________|");
System.out.println ("|         NET PAY:                                     |");
System.out.println ("|______________________________________________________|");



}
}


that's my codes but its wrong according to our prof. it should be in frame form. i don't know how to do it since i did not encountered framing since i was started in java.

hope you'll help my problem, sooner.

thanks.

This post has been edited by macosxnerd101: 06 June 2014 - 08:34 PM
Reason for edit:: Please use code tags


Is This A Good Question/Topic? 0
  • +

Replies To: making payroll form using java language but its like framing form

#2 jacobTheMechanic  Icon User is offline

  • D.I.C Head

Reputation: 14
  • View blog
  • Posts: 89
  • Joined: 18-September 12

Re: making payroll form using java language but its like framing form

Posted 06 June 2014 - 09:07 PM

He may be referring to JFrame. Have you guys covered anything in Swing?

This post has been edited by jacobTheMechanic: 06 June 2014 - 09:09 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1