subject

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

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:30
Why is an outfitting a workspace with video games in a technology development company considered a strategic use of money
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Light travels at a speed of 186,000 miles a second. the distance light travels in a year is 5,865,690,000,000 miles/year 5,865,695,000,000 miles/year 58,656,950,000,000 miles/year 6,789,000,0000 miles/year
Answers: 1
question
Computers and Technology, 23.06.2019 10:20
Suppose there is a relation r(a, b, c) with a b+-tree index with search keys (a, b).1. what is the worst-case cost of finding records satisfying 10 < a < 50 using this index, in terms of the number of records n1, retrieved and the height h of the tree? 2. what is the worst-case cost of finding records satisfying 10 < a < 50 and 5 < b < 10 using this index, in terms of the number of records n2 that satisfy this selection, as well as n1 and h defined above? 3. under what conditions on n1 and n2, would the index be an efficient way of finding records satisfying the condition from part (2)?
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
The more powerful, 60 volt cables and the main power shut off on an hev are both colored orange
Answers: 1
You know the right answer?
Natalie wrote a short program for parallel arrays as part of an assignment. What will be the first l...
Questions
question
Geography, 05.04.2020 21:59
question
Mathematics, 05.04.2020 22:01
question
Mathematics, 05.04.2020 22:17
Questions on the website: 13722367