Question: Six integers are read from input into six variables, customer1 to customer6. Declare an array of integers, named customerNumbers, of size 6. Then, initialize

Six integers are read from input into six variables, customer1 to customer6.

  Declare an array of integers, named customerNumbers, of size 6. Then, initialize

Six integers are read from input into six variables, customer1 to customer6. Declare an array of integers, named customerNumbers, of size 6. Then, initialize the elements of customerNumbers with customer1 to customer6, in the order read. Ex: If the input is 55 98 16 46 45 94, then the output is: Customer numbers: 55 98 16 46 45 94 1 import java.util.Scanner; 2 HN345n 1000 a UNM 4567 3 public class CustomerTracker { PPPPI 6 7 8 9 10 11 12 13 14 15 16 17 public static void main(String[] args) { Scanner scnr = new Scanner(System.in); int customer1; int customer2; int customer3; int customer4; int customer5; int customer6; int i; customer1 = scnr.nextInt (); customer2 scnr.nextInt (); customer3= scnr.nextInt (); customer4 scnr.nextInt (); in 6 15 16 17 18 19 20 21 22 23 684857 W 24 25 26 27 28 29 } } customer2 = scnr.nextInt(); customer3= scnr.nextInt (); customer4 scnr.nextInt(); customer5 = scnr.nextInt (); customer6 scnr.nextInt (); * Your code goes here */ System.out.print("Customer numbers: "); for (i = 0; i < customerNumbers.length; ++i) { System.out.print(customer Numbers[i] + "); 11 } System.out.println();

Step by Step Solution

3.54 Rating (161 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

import javautilScanner public class CustomerTracker public static void mainString args Scanner ... View full answer

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 Programming Questions!