Question: Read two strings and two integers from input and call printEmployeePay() to output as follows. Ex: If the input is Anwar Pilar 44800 38600, then

Read two strings and two integers from input and call printEmployeePay() to output as follows. Ex: If the input is Anwar Pilar 44800 38600, then the output is: Anwar earns 44800 dollars per year. Pilar earns 38600 dollars per year. } import java.util.Scanner; public class EmployeePay { public static void printEmployeePay(String var1, int var2) { System.out.println(var1 + " earns " + var2 + " dollars per year."); } public static void main (String [] args) { \\insert code here } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!