Question

This project requires you to work with the arrayList data structure...

This project requires you to work with the arrayList data structure and text files. This program demonstrates the ArrayList add() method that will add an object to the ArrayList, and the clear() method that will remove all the objects of an ArrayList. Also demonstrated is the for-each-loop. This loop is related to the for loop and allows you to work through a data structure like and ArrayList and examine each element in that data structure. Also, there is a method that demonstrates reading a series of integer numbers entered on a line. In this project you are to model a group of art museums that wish to create exhibitions drawing from the paintings in their collections. The possible exhibitions could be 1) all the paintings from one time period, or 2) all the paintings from a given country, or 3) all the paintings of a certain painter, or 4) all the paintings of a certain genre such as Renaissance or Classical, or 5) all the paintings using a certain medium such as Oil or Watercolor, or 6) all the paintings in a certain size range. For each exhibition the output will be a list of paintings satisfying the requested category.  Each museum has a list of paintings that are in a text file. This text file contains the necessary information for each painting with the number of paintings for that museum as the first line of the text file. The program should allow the user to continue creating exhibitions for as long as he wishes.  I will supply the text files for each museum. I have a program written but I'm having problems to run it correctly.

here are the files for each museum

1. portrait gallery

20
1
Memling
Portrait of an Old Woman
1480
1.3
Renaissance
Oil
Belgium
2
Metsys
The Moneylender and His Wife
1525
2.1
Renaissance
Oil
Belgium
3
Degas
Dancer Adjusting Her Sipper
1874
1.0
Impressionistic
Drawing
France
4
Degas
Dancer Resting
1874
1.5
Impressionistic
Drawing
France
5
Degas
Dancing Master
1874
.9
Impressionistic
Drawing
France
6
Degas
The Dancer Jules Perrot
1875
1.3
Impressionistic
Oil
France
7
Leonardo Da Vinci
The Virgin of the Rocks
1498
3.2
Renaissance 
Oil
Italy
8
Degas
Dancer Adjusting Her Costume
1873
1.2
Impressionistic
Drawing
France
9
Bacciarelli
Stanislaus Augustus Poniatowski
1891
3.4
Classical
Oil
Italy
10
Titian
The Man with a Glove
1560
4.5
Classical
Oil
Italy
11
Rembrandt
Portrait of a Young Man
1650
2.4
Classical 
Oil
Dutch
12
Rembrandt
Girl Leaning on a Stone Pedestal
1650
3.4
Classical
Oil
Dutch
13
Murillo
The Flower Girl
1676
.7
Classical
Oil
Spain
14
Tiepolo
Man with a Bird
1759
.6
Classical
Drawing 
Italy
15
Gainsborough
Phillippe-Jacques
1755
.5
Classical
Oil
English
16
Lely
Portrait of a Boy as a Shepherd
1750
2.3
Classical
Oil
Britain
17
Van Gogh
Self-portrait
1889
.9
Impressionistic
Oil
France
18
Gauguin
Self-portrait
1890
2.1
Impressionistic
Oil
France
19
Leo Vincia
The Rocks
1998
3.2
Modern 
Oil
Italy
20
Trobitian
The Glove
1960
4.5
Modern
Oil
Italy 

2. corcoran

19
1
Angelico
The Coronation of the Virgin
1622
6.6
Renaissance
Oil 
Italy
2
Ghirlandajo
Portrait of an Old Man
1590
3.5
Renaissance
Oil
Italy
3
Botticelli
The Virgin and Child
1603
2.4
Renaissance
Oil 
Italy
4
Botticelli
Venus and the Three Graces
1579
2.4
Renaissance
Oil
Italy
5
Corot
Woman with a Pearl
1867
3.2
Renaissance
Oil
France
6
Leonardo Da Vinci
Study of draperies
1502
.5
Renaissance
Drawing
Italy
7
Leonardo Da Vinci
Mona Lisa
1500
2.4
Renaissance
Oil
Italy
8
Manet
The Picnic
1879
5.4
Impressionistic
Oil
France
9
Giorg
Open Air Concert
1930
4.3
Modern
Oil
Italy
10
Tintoretto
Paradise
1600
2.5
Renaissance
Drawing
Italy
11
La Tour
Adoration of the Shepherds
1679
1.3
Baroque
Oil
France
12
Ribera
The Clubfoot
1702
.5
Renaissance
Oil
Spain
13
Zurab
Funeral of Saint Bonaventurea
1965
2.4
Modern 
Oil
Spain
14
Goya
Lady with a Fan
1795
2.4
Classical
Oil
Spain
15
Goya
Portrait of Guillemardet
1796
2.1
Classical
Oil
Spain
16
Goya
Portrait of the Marchioness of Solana
1793
2.8
Classical
Oil
Spain
17
Rubens
The Virgin of the Innocents
1803
3.3
Classical
Oil
Belgium
18
Memling
Portrait of an Old Woman
1480
1.3
Renaissance
Oil
Belgium
19
Metsis
The Moneylender and His Wife
1925
2.1
Modern
Oil
Belgium

3. national gallery

20
1
Giotto
Saint Francis of Assisi
1590
2.9
Renaissance 
Tempera
Italy
2
Angelico
Martyrdom of Saint Cosmus
1602
4.6
Renaissance
Oil 
Italy
3
Pisanello
Study of Ducks
1640
1.3
Renaissance
Drawing
Italy
4
Pisanello
Portrait of a Lady
1598
0.7
Renaissance
Oil
Italy
5
Tura
Pieta
1480
6.7
Renaissance
Oil
Italy
6
Bellini
Christ Blessing after the Resurrection
1501
2.1
Renaissance
Oil
Italy
7
Degas
A Ballet Dancer in Position
1872
.7
Impressionistic
Drawing
France
8
Correggio
Saint James the Minor
1530
1
Renaissance
Drawing
Italy
9
Correggio
The Sleep of Antiope
1502
3.2
Renaissance
Oil
Italy
10
Van Dyck
Lady Venetia Digaby
1650
4
Classical
Oil
Belgium
11
Veronese
The Marriage at Cana
1570
12.5
Renaissance
Oil
Italy
12
El Greco
Portrait of Covarrubbias
1559
.5
Renaissance
Oil
Spain
13
El Greco
Christ of the Cross
1560
5.4
Renaissance
Oil
Spain
14
Renoir
Portrait of Madame Charpentier
1890
1.78
Impressionistic
Oil
France
15
Velasquez
Portrait of Queen Marianna
1700
2.1
Renaissance 
Oil
Spain
16
Van Eyck
The Virgin with the Chancellor Rolin
1420
2.3
Renaissance
Oil
Belgium
17
Van Der Weyden
The Annunciation
1439
3.1
Renaissance
Oil
Belgium
18
David
Madame Recamier
1790
2.5
Classical
Oil
French
19
El Grenara
Portrait of a Lady
1959
.5
Modern
Oil
Spain
20
Van Der Hoveven
The Annunciation
1939
3.1
Modern
Oil
Belgium

4. philips collection

18
1
Cimabue
The Virgin with the Angels
1560
3.5
Renaissance 
Oil
Italy 
2
Martini
The carrying of the Cross
1602
5.3
Renaissance 
Oil
France
3
Baldovinetti
Virgin and Child
1593
4.6
Renaissance
Oil
Italy
4
Uccello
Rout of San Romano
1700
5.6
Baroque
Oil
German
5
Carpaccio
Saint Stephen Preaching at Jerusalem
1490
3.4
Renaissance
Oil
Italy
6
Mantegna
The Calvary
1500
5.7
Renaissance
Oil
Italy
7
Leonardo Da Vinci
The Virgin, the Child
1480
4.2
Renaissance
Oil
Italy
8
Raphael
Psyche and Venus
1520
0.2
Renaissance
Drawing
Italy
9
Raphael
La Belle Jardiniere
1510
1.3
Renaissance
Oil
Italy
10
Titian
The Entombment
1550
6.7
Renaissance
Oil
Italy
11
Titcomian
Portrait of a Young Woman
1945
3.2
Modern
Oil
Italy
12
Magnasco
Landscape
1725
4.5
Baroque
Oil
Italy
13
Tiepolo
the Minuet
1790
3.5
Baroque
Oil
Italy
14
Zurranian
Saint Apoline
1990
6.3
Modern 
Oil
Spain
15
Velasquez
Portrait of the Infant Margaret
1730
2.4
Classical
Oil
Spain
16
Jan Fyt
Games and Hutting Objects
1804
2.1
Classical
Oil
Belgium
17
Brouwer
The Worker
1930
1.3
Modern 
Oil
Belgium
18
Rembrandt
Self-portrait
1659
.8
Classical
Oil
Dutch

here is the output for the program

Image transcription text

ves Virginia Community x N Project 8 Museum 4 X Student Resources < X w Word w Document22.docx x N https://www.nycc.e x C Anvcc.edu/home/dfranssell/CSC201/CSC201%20Museum%20project_files/output%20diolog%20from%20Art%20Museum%20program.txt G K Apps 19) Leonardo Da Vinci 1500 Mona Lisa Renaissance oil Italy 2.4 20) Tintoretto 1600 Paradise Renaissance Drawing Italy 2.5 21) Ribera 1702 The Clubfoot Renaissance oil Spain 3. 5 22) Memling 1480 Portrait of an Old Woman Renaissance oil Belgium 1.3 23 ) Memling 1480 Portrait of an Old Woman Renaissance oil Belgium 1.3 24) Metsys 1525 The Moneylender and His Wife Renaissance oil Belgium 2. 1 Would you like to create a new exhibition? Enter yes or no. yes For this exhibition, from which Museums would you like the art work be drawn? Please enter their numbers on one line. 1) National Gallery Philips Collection w Corcoran 4) Portrait Gallery 12 3 4 Now that you have chosen the museums, please choose an exhibition topic and enter its number. 1) Painter 2) Year painted 5:02 AM Type here to search O Fi ?) A ( 1) ENG 11/28/2020

... Show more

Image transcription text

wes Virginia Community X N Project 8 Museum 4 X Student Resources \ X w Word w Document22.docx x N https://www.nycc.e x C Anvcc.edu/home/dfranssell/CSC201/CSC201%20Museum%20project_files/output%20diolog%20from%20Art%20Museum%20program.txt G K Apps Renaissance oil Spain 0.5 10) El Greco 1560 Christ of the Cross Renaissance oil Spain 5.4 11 ) Van Eyck 1420 The Virgin with the Chancellor Rolin Renaissance oil Belgium 2.3 12) Van Der Weyden 1439 The Annunciation Renaissance oil Belgium 3.1 13) Angelico 1622 The Coronation of the Virgin Renaissance oil Italy 6.6 14) Ghirlandajo 1590 Portrait of an Old Man Renaissance oil Italy 3.5 15) Botticelli 1603 The Virgin and Child Renaissance oil Italy 2.4 16) Botticelli 1579 Venus and the Three Graces Renaissance oil Italy 2.4 17) Corot 1867 Woman with a Pearl Renaissance oil France 3.2 18) Leonardo Da Vinci 1502 Study of draperies Renaissance Drawing Italy 0.5 19) Leonardo Da Vinci 1500 Mona Lisa Renaissance oil Italy 2.4 20 ) Tintoretto 1600 Paradise Renaissance Drawing Italy 2.5 21\Bihona 1707 The Clubfoot 5:02 AM H Type here to search O ?) A ( 1) ENG 11/28/2020

... Show more

Image transcription text

wes Virginia Community X N Project 8 Museum 4 X Student Resources \ X w Word w Document22.docx x N https://www.nycc.e x C Anvcc.edu/home/dfranssell/CSC201/CSC201%20Museum%20project_files/output%20diolog%20from%20Art%20Museum%20program.txt G K Apps The exhibition is drawn from these museums: National Gallery Corcoran Portrait Gallery The paintings from the Renaissance period are: 1 ) Angelico 1602 Martyrdom of Saint Cosmus Renaissance oil Italy 4.6 2 )Pisanello 1640 Study of Ducks Renaissance Drawing Italy 1.3 3 )Pisanello 1598 Portrait of a Lady Renaissance oil Italy 0.7 4 ) Tura 1480 Pi Renaissance oil Italy 6.7 5 )Bellini 1501 Christ Blessing after the Resurrection Renaissance oil Italy 2.1 6 ) Correggio 1530 Saint James the Minor Renaissance Drawing Italy 1. 0 7 ) Correggio 1502 The Sleep of Antiope Renaissance oil Italy 3. 2 8 ) Veronese 1570 The Marriage at Cana Renaissance oil Italy 12.5 9 )El Greco 1559 Portrait of Covarrubias Renaissance oil Spain 0.5 10) El Greco 1560 Christ of the Cross Renaissance oil Spain 5.4 11 ) Van Eyck 1420 The Virgin with the Chancellor Rolin 5:02 AM Type here to search O ?) A ( 1) ENG 11/28/2020

... Show more

Image transcription text

i nvccedu This program Creates art exhibitions Would you like to create a new exhibition? Enter yes or no. yes For this exhibition, from which Museums would you like the art work be drawn? Please enter their numbers on one line. 1) National Gallery 2) Philips Collection 3) Corcoran 4) Portrait Gallery 134- Now that you have (hosen the museums, please (hoose an exhibition topic and enter its number 1) Painter 2) Year painted 3} Size 4) Medium 5) Country 6) Genre 6 Please choose the genre and enter its number 1) Renaissance 2) Baroque 3) Classical 4) Impressionistit 5) Modern 1 The exhibition is drawn From these museums: National Gallery Corcoran Portrait Gallery The paintings from the Renaissance period are: .

... Show more

Show transcribed image text

Answer & Explanation

Unlock full access to Course Hero

Explore over 16 million step-by-step answers from our library

Get answer

Our verified expert tutors typically answer within 15-30 minutes.