Question: This Java program will use three (3) parallel arrays: String[ I names new StringIS]: float [] hours-new double[5] float [1 payrate new float I5] /

This Java program will use three (3) parallel arrays: String[ I names new StringIS]: float [] hours-new double[5] float [1 payrate new float I5] / Such as 40.5 // Such as 10.50 (S per hour) The names array is used to store the names of five(5) persons, and the hours array is used to store the hours worked for the same five persons. The data for one person is stored in the same relative location in each array. For example, the first person's name is stored at names tO]and that same person's hours is stored at hourst0]. To access the data, use the same subscript with both arrays. For example, the following loop displays each person's name and hours. for (int i 0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
