Computers and Technology

Natalie wrote a short program for parallel arrays as part of an assignment. What will be the first line of output based on her code? public class parArray
{
public static void main(String[] args){
int[] empID = {101, 102, 103};
String[] emp_name = {“Jamie Doe”, “Patricia Jack”, “Paul Nick”};
String[] dept = {“Finance”, “Technology”, “HR”};
for ( int i = 0; i {
System. out. print( empID[i] + “\t”);// \t = inserts a tab space
System. out. print( emp_name[i] + “\t”);
System. out. print( dept[i] + “\t”);
System. out. println();
}
}
}

A. 103 Paul Nick HR
B. 101 102 103
C. Jamie Doe Patricia Jack Paul Nick
D. 101 Jamie Doe Finance

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, abelxoconda
Which are examples of note-taking tools? check all that recording devices sticky notes digital highlighters paper flags highlighting pens digital displays digital flags
Answers: 1
image
Computers and Technology, 22.06.2019 11:50, nicoleskertich
You have written, as part of a school assignment, a research paper on the solar system. you want to share this paper on your school website. on which type of server will you upload it?
Answers: 1
image
Computers and Technology, 23.06.2019 07:30, devnnn44
What is the original authority for copyright laws
Answers: 1
image
Computers and Technology, 23.06.2019 20:00, shadow6728g
How much current flows through the alternator brushes? a. 2–5 a b. 25–35 a, depending on the vehicle c. 5–10 a d. 10–15 a
Answers: 2
Do you know the correct answer?
Natalie wrote a short program for parallel arrays as part of an assignment. What will be the first l...

Questions in other subjects: