Starting from:
$30

$24

Lab #4 Arrays Solution

Lab Description




In this lab you will create a Java file, MyJavaLab04.java and complete the outlined objectives below.







Objective 1




Print your name and student ID to the screen, in the format: YourLastName, YourFirstName, YourStudentID




Objective 2




In the main method, prompt the user asking them how many movie reviewers are going to enter reviews, and prompt them to enter reviewer names and store reviewers in a 1D array.




Objective 3




In the main method, ask the user how many movies are going to be reviewed, and prompt them to enter the movie names and store that info in a 1D array.




Objective 4




Prompt each reviewer to review each movie and store the reviews in a 2D array.







Objective 5




Display the results of each movie reviewed and who reviewed.







Example output




Note: orange text is what you print, blue text is the text the user typed in.







Example use of the program:

How many movie reviewers are going to enter reviews?

3

Enter movie reviewer #1

Ameya

Enter movie reviewer #2

Ashley

Enter movie reviewer #3

Eduardo

How many movies will be reviewed?

2

Enter movie #1

Garden State

Enter movie #2

The Room

Ameya: enter review for Garden State

Great!

Ameya: enter review for The Room

Very strange.

Ashley: enter review for Garden State

Loved it.

Ashley: enter review for The Room

Was really bored.

Eduardo: enter review for Garden State

Meh.

Eduardo: enter review for The Room

Best movie ever.

Ameya reviewed Garden State

Great!

Ameya reviewed The Room

Very strange.

Ashley reviewed Garden State

Loved it.

Ashley reviewed The Room

Was really bored. Eduardo reviewed Garden State

Meh.

Eduardo reviewed The Room

Best movie ever.







Note: the questions/prompts should be phrased exactly as they appear above. You don't need to worry about color formatting your terminal, it's color coded above to distinguish between what you print to the screen and what the user entered.







What do you have to turn in?




A Java file named MyJavaLab04.java inside a zip folder named LastNameFirstName-lab04.zip







Criteria for grading:




● [10 pts] Your lab is submitted according to specifications (proper name of file, proper format)

● [10 pts] Well commented code explaining what you are doing (clear and grammatically correct)

● [5 pts] Objective 1

● [15 pts] Objective 2

● [15 pts] Objective 3

● [25 pts] Objective 4

● [20 pts] Objective 5

More products