Question: Having difficulty with a java assignment. The book for the class is Introduction to Java Programming, Comprehensive Version Y. Daniel Liang & Prentice Hall 11th

Having difficulty with a java assignment. The book for the class is Introduction to Java Programming, Comprehensive Version Y. Daniel Liang & Prentice Hall 11th Edition / 2018. We are currently working in Chapter 8, Multidimensional Arrays. Below are the questions to the problems. Im lost in the sauce I need help.

Declare an array variable (not a populated array, numbers only) for each of the following situations.

Below is the array string for question 2, and 3. I got these wrong. In bold you will see my instructors comments. Can someone help me to fix these two. I think I'm no the right track, it just needs to be tweaked a little.

The second one, you have allocated 5 students with 5 names each. We only need first and last name. The 3rd one, you have allocated 5 student's last names but only 9 assignments. Hint, the first column holds the student's last name. Resubmit for number 2 and 3

2) 5 Students first and last names

String firstAndLastNames[][] = new String[5][5]; ? How do I fix this one.

3) 5 Students last names and 10 assignment names that can be either essays or labs, not both.

String lastNameAndAssignment[][] = new String[5][10]; ? How do I fix this one.

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!