Question: CHALLENGE ACTIVITY 6 . 2 . 3 : Print methods. 5 2 8 0 4 0 . 3 4 8 9 5 2 8 .

CHALLENGE
ACTIVITY
6.2.3: Print methods.
528040.3489528. qx3zqy7
Jump to level 1
Read two strings and two integers from input and call printSalary() to output as follows.
Ex: If the input is Gil Pilar 4270054700, then the output is:
Gil earns 42700 dollars per year.
Pilar earns 54700 dollrs per year.
import java.util.Scanner;
public class Salary {
public static void printSalary(String var1, int var2){
}
System.out.println(var1+" earns "+ var2+ "dollars per year.");
public static void main (String [] args){
Y* Your code goes here */
}
}
1
2
3
 CHALLENGE ACTIVITY 6.2.3: Print methods. 528040.3489528. qx3zqy7 Jump to level 1

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!