(c) Write a FULL Java procedural program (not a JHUB script) to manage information about the singles released by a musician. Below is an example of the required program behaviour. The bold text is keyboard input by the user. (a) dd single (s)earch for title (1)ist year (e) xit Enter option [a/s/1/e]: a Year? 2008 Title? Make You Feel My Love Enter option [a/s/1/e]: a Year? 2010 Title? Rolling in the Deep Enter option [a/s/1/e]: a Year? 2011 Title? Someone like You Enter option [a/s/1/e]: a Year? 2011 Title? Set Fire to the Rain Enter option [a/s/1/e]: s Title to search for? Rolling in the Deep Single "Rolling in the Deep" was in year 2010 Enter option [a/s/1/e]: 1 Year to list? 2011 "Someone like You" "Set Fire to the Rain" Total singles in year 2011 is 2 Enter option [a/s/1/e]: e The program initially has no information stored. It starts by printing the options menu. The options (except for 4) may be used multiple times in any order. Option (a) asks the user to enter the year and title of a single to add, e.g., in the above example, the single "Make You Feel My Love" was released in 2008. For the year, only values from 1950 onwards are considered valid. You may assume the user never enters repeat titles. You may also assume the number of singles never exceeds 200.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
(c) Write a FULL Java procedural program (not a JHUB script) to manage information
about the singles released by a musician. Below is an example of the required
program behaviour. The bold text is keyboard input by the user.
(1) ist year
(a) dd single (s)earch for title
Enter option [a/s/1/e]: a
Year? 2008
Title? Make You Feel My Love
Enter option [a/s/1/e]: a
Year? 2010
Title? Rolling in the Deep
Enter option [a/s/1/e]: a
Year? 2011
Title? Someone like You
Enter option [a/s/1/e]: a
Year? 2011
Title? Set Fire to the Rain
Enter option [a/s/1/e]: s
(e) xit
Title to search for? Rolling in the eep
Single "Rolling in the Deep" was in year 2010
Enter option [a/s/1/e]: 1
Year to list? 2011
"Someone like You"
"Set Fire to the Rain"
Total singles in year 2011 is 2
Enter option [a/s/1/e]: e
The program initially has no information stored. It starts by printing the options menu.
The options (except for 4) may be used multiple times in any order.
Option (a) asks the user to enter the year and title of a single to add, e.g., in the above
example, the single "Make You Feel My Love" was released in 2008. For the year,
only values from 1950 onwards are considered valid. You may assume the user never
enters repeat titles. You may also assume the number of singles never exceeds 200.
Option (s) searches all the added singles for one with the specified title and prints the
year of that episode if found.
Option (1) lists all the titles of singles a specified year and prints the total number
of singles released in that year, if found. Your program is allowed to print the singles
in any order as long as all are printed once each.
Your program must:
• Use a for-loop, a while-loop and an array (at least one of each).
• Be a procedural program. (Not an "object-oriented" program.)
It must NOT use global variables.
Transcribed Image Text:(c) Write a FULL Java procedural program (not a JHUB script) to manage information about the singles released by a musician. Below is an example of the required program behaviour. The bold text is keyboard input by the user. (1) ist year (a) dd single (s)earch for title Enter option [a/s/1/e]: a Year? 2008 Title? Make You Feel My Love Enter option [a/s/1/e]: a Year? 2010 Title? Rolling in the Deep Enter option [a/s/1/e]: a Year? 2011 Title? Someone like You Enter option [a/s/1/e]: a Year? 2011 Title? Set Fire to the Rain Enter option [a/s/1/e]: s (e) xit Title to search for? Rolling in the eep Single "Rolling in the Deep" was in year 2010 Enter option [a/s/1/e]: 1 Year to list? 2011 "Someone like You" "Set Fire to the Rain" Total singles in year 2011 is 2 Enter option [a/s/1/e]: e The program initially has no information stored. It starts by printing the options menu. The options (except for 4) may be used multiple times in any order. Option (a) asks the user to enter the year and title of a single to add, e.g., in the above example, the single "Make You Feel My Love" was released in 2008. For the year, only values from 1950 onwards are considered valid. You may assume the user never enters repeat titles. You may also assume the number of singles never exceeds 200. Option (s) searches all the added singles for one with the specified title and prints the year of that episode if found. Option (1) lists all the titles of singles a specified year and prints the total number of singles released in that year, if found. Your program is allowed to print the singles in any order as long as all are printed once each. Your program must: • Use a for-loop, a while-loop and an array (at least one of each). • Be a procedural program. (Not an "object-oriented" program.) It must NOT use global variables.
- All your methods must be contained within ONE class.
You should not assume that the user always enters valid inputs. However, you may
assume numerical values are always entered as numbers.
To attain a pass mark, your program must include meaningful use of an if-statement
and a loop. For a high mark, your program must be functionally and clearly correct,
make good use of arrays, records and method decomposition into methods that
take arguments and return results, and handle out-of-range input values. It must be
designed and written in a good programming style. For a very high mark, your program
must also make good use of at least one abstract data type, have outstanding style
(including appropriate comments), and handle invalid input values elegantly.
Transcribed Image Text:- All your methods must be contained within ONE class. You should not assume that the user always enters valid inputs. However, you may assume numerical values are always entered as numbers. To attain a pass mark, your program must include meaningful use of an if-statement and a loop. For a high mark, your program must be functionally and clearly correct, make good use of arrays, records and method decomposition into methods that take arguments and return results, and handle out-of-range input values. It must be designed and written in a good programming style. For a very high mark, your program must also make good use of at least one abstract data type, have outstanding style (including appropriate comments), and handle invalid input values elegantly.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY