Rare Collection. We can make arrays of custom objects just like we’ve done with ints and strings. While it’s possible to make both 1D and 2D arrays of objects (and more), for this assignment we’ll start you out with just one dimensional arrays. Your parents have asked you to develop a program to help them organize the collection of rare CDs they currently have sitting in their car’s glove box. To do this, you will first create an AudioCD class. It should have the following private attributes.  String cdTitle  String[4] artists  int releaseYear  String genre  float condition

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

IN JAVA please!

Rare Collection. We can make arrays of custom objects just like we’ve done with ints and strings. While it’s possible to make both 1D and 2D arrays of objects (and more), for this assignment we’ll start you out with just one dimensional arrays. Your parents have asked you to develop a program to help them organize the collection of rare CDs they currently have sitting in their car’s glove box.

To do this, you will first create an AudioCD class.

It should have the following private attributes.

 String cdTitle

 String[4] artists

 int releaseYear

 String genre

 float condition

Your class should also have the following methods:

 Default Constructor:

Initializes the five attributes to the following default values:

◦ cdTitle = “”

◦ artists = {“”, “”, “”, “”}

◦ releaseYear = 1980

◦ genre = “”

◦ condition = 0.0

 Overloaded Constructor:

Initializes the five attributes based on values passed into the formal parameters

◦ If condition is less than 0.0 or greater than 5.0, set it equal to 0.0

◦ If releaseYear is less than 1980, set it equal to 1980

◦ Print message if the parameter’s artist array size is greater than 4, and only store the first four values

 Getter method for all class attributes

You will then create a separate class, Assignment7A.

In its main method, you should do the following:

 Ask the user how many Audio CDs are in their collection

 Create an array (of type AudioCD) of that size

 Use a loop to ask the user to enter information for all CDs

◦ Create a AudioCD object for each Audio CD and store it in the next index in the array

Then using another loop, you should give the user the following options:

 Print Audio CD information

◦ This should ask the user for a number, and then print the information from the AudioCD object at that index using a custom toString() method. If the index is out of bounds, it should notify the user instead.

 Search for an Audio CD from the collection

◦ This should ask the user for an Audio CD name, then search the array for an Audio CD with that name (case insensitive).

If it exists in the array, then it should print the same information about the Audio CD as in the prior point (Hint: Could you make a method to simplify this process?). If it does not exist in the array, notify the user.

 Search for an artist from the collection ◦ This should ask the user for an artist name, then search the array for an Audio CD by that artist (case insensitive).

Print all the Audio CDs that the artist worked on in the collection. If they are not in the array, notify the user.

 Quit ◦ Ends the loop and the program 

In JAVA please!

See photos for sample output

Chrome
File Edit View History Bookmarks Profiles Tab Window Help
Serendipity Labs | CX C Search Results: cels x a Amazon.com: band X SP Request Confirmatio X
ccse.kennesaw.edu/fye/M8%20-%20Assignment%207%20SP22%20v1.1.pdf
Office 365 Login ...
← → C
Serendipity Labs ...Y Dashboard - Conn...
= Assignment 8 - FA 2021
A
Ⓒ
*
‒‒‒
@
SP Angus in LinkedIn MOMOSO MRM :: Ho...
Alan Silvestri
Chuck Berry
-1
3 / 6
Enter Genre: Pop Rock
*Enter Release Year: 1985
*Enter Condition: 4.8
CD #2:
Sample Output:
[Rate Audio CD Collection]
How many CDs do you have lying around your car? 8.
CD #1:
*Enter Title: Back to the Future: Music from the Motion Picture Soundtrack
*Enter Artists (type -1 when finished):
Huey Lewis and the News
Lindsey Buckingham
*Enter Title: Batman (Soundtrack)
*Enter Artists (type -1 when finished):
Prince
Sheena Easton
Eric Leeds and the Atlanta Bliss
-1
Enter Genre: Rock, Funk, Pop
*Enter Release Year: 1989
*Enter Condition: 2.4
75% +
3) Find an artist
4) Log off
Choice: 1
JUL
12
//Keep going for all 8 CDS (THIS IS NOT PART OF THE OUTPUT)
[Main Menu]
1) Album Info
2) Find a CD
Which CD do you want? 100
Sorry, there's no CD that matches the criteria.
[Main Menul
U
https://101-bagel-ca X
O
billing Yelp
W
32
Assignment 8 - FA
P
X
Q M ☆
Microsoft Office H... s Serendipity Atlant...
.
b Home | bartleby
S
?
»
Tue Jul 12 10:13 AM
+
Update:
Other Bookmarks
⠀
Transcribed Image Text:Chrome File Edit View History Bookmarks Profiles Tab Window Help Serendipity Labs | CX C Search Results: cels x a Amazon.com: band X SP Request Confirmatio X ccse.kennesaw.edu/fye/M8%20-%20Assignment%207%20SP22%20v1.1.pdf Office 365 Login ... ← → C Serendipity Labs ...Y Dashboard - Conn... = Assignment 8 - FA 2021 A Ⓒ * ‒‒‒ @ SP Angus in LinkedIn MOMOSO MRM :: Ho... Alan Silvestri Chuck Berry -1 3 / 6 Enter Genre: Pop Rock *Enter Release Year: 1985 *Enter Condition: 4.8 CD #2: Sample Output: [Rate Audio CD Collection] How many CDs do you have lying around your car? 8. CD #1: *Enter Title: Back to the Future: Music from the Motion Picture Soundtrack *Enter Artists (type -1 when finished): Huey Lewis and the News Lindsey Buckingham *Enter Title: Batman (Soundtrack) *Enter Artists (type -1 when finished): Prince Sheena Easton Eric Leeds and the Atlanta Bliss -1 Enter Genre: Rock, Funk, Pop *Enter Release Year: 1989 *Enter Condition: 2.4 75% + 3) Find an artist 4) Log off Choice: 1 JUL 12 //Keep going for all 8 CDS (THIS IS NOT PART OF THE OUTPUT) [Main Menu] 1) Album Info 2) Find a CD Which CD do you want? 100 Sorry, there's no CD that matches the criteria. [Main Menul U https://101-bagel-ca X O billing Yelp W 32 Assignment 8 - FA P X Q M ☆ Microsoft Office H... s Serendipity Atlant... . b Home | bartleby S ? » Tue Jul 12 10:13 AM + Update: Other Bookmarks ⠀
Chrome
File Edit View History Bookmarks Profiles Tab Window Help
Serendipity Labs | CX C Search Results: cels x a Amazon.com: band X SP Request Confirmatio X
ccse.kennesaw.edu/fye/M8%20-%20Assignment%207%20SP22%20v1.1.pdf
Office 365 Login ...
← → C
Serendipity Labs ...Y Dashboard - Conn...
= Assignment 8 - FA 2021
A
Ⓒ
*
‒‒‒
@
SP Angus in LinkedIn MOMOSO MRM :: Ho...
Alan Silvestri
Chuck Berry
-1
3 / 6
Enter Genre: Pop Rock
*Enter Release Year: 1985
*Enter Condition: 4.8
CD #2:
Sample Output:
[Rate Audio CD Collection]
How many CDs do you have lying around your car? 8.
CD #1:
*Enter Title: Back to the Future: Music from the Motion Picture Soundtrack
*Enter Artists (type -1 when finished):
Huey Lewis and the News
Lindsey Buckingham
*Enter Title: Batman (Soundtrack)
*Enter Artists (type -1 when finished):
Prince
Sheena Easton
Eric Leeds and the Atlanta Bliss
-1
Enter Genre: Rock, Funk, Pop
*Enter Release Year: 1989
*Enter Condition: 2.4
75% +
3) Find an artist
4) Log off
Choice: 1
JUL
12
//Keep going for all 8 CDS (THIS IS NOT PART OF THE OUTPUT)
[Main Menu]
1) Album Info
2) Find a CD
Which CD do you want? 100
Sorry, there's no CD that matches the criteria.
[Main Menul
U
https://101-bagel-ca X
O
billing Yelp
W
32
Assignment 8 - FA
P
X
Q M ☆
Microsoft Office H... s Serendipity Atlant...
.
b Home | bartleby
S
?
»
Tue Jul 12 10:13 AM
+
Update:
Other Bookmarks
⠀
Transcribed Image Text:Chrome File Edit View History Bookmarks Profiles Tab Window Help Serendipity Labs | CX C Search Results: cels x a Amazon.com: band X SP Request Confirmatio X ccse.kennesaw.edu/fye/M8%20-%20Assignment%207%20SP22%20v1.1.pdf Office 365 Login ... ← → C Serendipity Labs ...Y Dashboard - Conn... = Assignment 8 - FA 2021 A Ⓒ * ‒‒‒ @ SP Angus in LinkedIn MOMOSO MRM :: Ho... Alan Silvestri Chuck Berry -1 3 / 6 Enter Genre: Pop Rock *Enter Release Year: 1985 *Enter Condition: 4.8 CD #2: Sample Output: [Rate Audio CD Collection] How many CDs do you have lying around your car? 8. CD #1: *Enter Title: Back to the Future: Music from the Motion Picture Soundtrack *Enter Artists (type -1 when finished): Huey Lewis and the News Lindsey Buckingham *Enter Title: Batman (Soundtrack) *Enter Artists (type -1 when finished): Prince Sheena Easton Eric Leeds and the Atlanta Bliss -1 Enter Genre: Rock, Funk, Pop *Enter Release Year: 1989 *Enter Condition: 2.4 75% + 3) Find an artist 4) Log off Choice: 1 JUL 12 //Keep going for all 8 CDS (THIS IS NOT PART OF THE OUTPUT) [Main Menu] 1) Album Info 2) Find a CD Which CD do you want? 100 Sorry, there's no CD that matches the criteria. [Main Menul U https://101-bagel-ca X O billing Yelp W 32 Assignment 8 - FA P X Q M ☆ Microsoft Office H... s Serendipity Atlant... . b Home | bartleby S ? » Tue Jul 12 10:13 AM + Update: Other Bookmarks ⠀
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education