Sumali sa IDNStudy.com at makuha ang mabilis at kaugnay na mga sagot. Magtanong at makakuha ng detalyadong sagot mula sa aming komunidad ng mga eksperto na may kaalaman.

how to make payroll system in java using codes?



Sagot :

.import java.util.Scanner; 
public class pay1 

public static void main(String [] args) 

Scanner reader = new Scanner(System.in); 
double wage, days, hours; 
double pay; 

System.out.print("Wage?: "); 
wage= reader.nextDouble(); 
System.out.print("Days Worked: "); 
days= reader.nextDouble(); 
System.out.print("Hours worked: "); 
hours= reader.nextDouble(); 

pay=wage*hours*days; 

System.out.print("Total pay before goverment steals away some: "); 
System.out.println(pay); 




NOTES:
*Just make sure you line up the brackets up and modify it to suite your needs.
*This is just the basic outline of one.
*Methodology that NEVER, EVER changes when building a program or a complete system: 
- Determine the inputs you need. 
- Determine the outputs you need. 
- Determine how to do the calculations. 
- Put it all together