Purpose : To learn how to code three (3) separate one-dimensional arrays and pro
ID: 3699358 • Letter: P
Question
Purpose: To learn how to code three (3) separate one-dimensional arrays and process them in parallel with one another.
Instructions: In the main() of a program called YourLastNameFirstInitialLE61.java, code an array using an initializer list that contains the following categories from the 2018 Oscars: "Best Picture", "Best Animated Feature Film", "Best Cinematography".
Code a second array that holds the name of film.
Code a third array that holds the worldwide box office revenue for each film.
Code a for loop that will populate the arrays by prompting for the film and its worldwide box office revenue.
Then, code another for loop that will display the content from these arrays as follows:
Output Specifications: where the Xs represent the film and the category for which it is honored and the Zs the box office revenue.
OSCAR WINNERS 2018
FILM CATEGORY WORLDWIDE BOX OFFICE REVENUE
Xxxxxxxxxxxxxxx Xxxxxxxxxxxxxxxxxxxx Z,ZZZ,ZZZ,ZZ9.99
Xxxxxxxxxxxxxxx Xxxxxxxxxxxxxxxxxxxx Z,ZZZ,ZZZ,ZZ9.99
Xxxxxxxxxxxxxxx Xxxxxxxxxxxxxxxxxxxx Z,ZZZ,ZZZ,ZZ9.99
Output:
Explanation / Answer
Please find the JAVA code below. Proper documentation is also provided in the program. Program execution output is also mentioned at the end.
JAVA CODE :
=========
OUTPUT :
========
Enter film name: “The Shape of Water”
Enter worldwide box office revenue: 12345678
Enter film name: “Blade Runner 2049,” Roger Deakins
Enter worldwide box office revenue: 2212121121
Enter film name: “Darkest Hour,” Bruno Delbonnel
Enter worldwide box office revenue: 44343223090
OSCAR WINNERS 2018
FILM CATEGORY WORLDWIDE BOX OFFICE REVENUE
“The Shape of Water” Best Picture 12345678.000000
“Blade Runner 2049,”Roger Deakins Best Animated Feature Film 2212121121.000000
“Darkest Hour,” Bruno Delbonnel Best Cinematography 44343223090.000000
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.