Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started