Question: Task 1 1) Write a Java program that displays in the terminal the title, label and price of the albums in the 'Album' table. A

 Task 1 1) Write a Java program that displays in the
terminal the title, label and price of the albums in the 'Album'

Task 1 1) Write a Java program that displays in the terminal the title, label and price of the albums in the 'Album' table. A sample program output is [10 marks) Title: Diamond Dogs Label: RCA Price: 7.99 Title: Station to Station Label: RCA Price: 6.99 Title: The Beatles Label: Apple Price: 10.99 Title: The Idiot Label: RCA Price: 5.99 Title: For Your Pleasure Label: Island Price: 4.99 Title: Revolver Label: Parlophone Price: 9.99 Title: Sabbath Bloody Sabbath Label: Vertigo Price: 5.99 Title: Welcome to Jamrock Label: Universal Price: 7.99 Title: The Top Label: Fiction Price: 4.99 Title: Strange Days Label: Elektra Price: 4.99 Title: Appetite for Destruction Label: Geffen Price: 5.99 Title: Trans-Europe Express Label: Kling Klang Price: 9.99 Title: Bleach Label: Sub Pop Price: 8.99 Title: The Man Who Sold The World Label: RCA Price: 5.99 Title: Abbey Road Label: Apple Price: 9.99 Title: Hounds of Love Label: EMI Price: 5.99 Title: The Velvet Underground and Nico Label: Verve Price: 4.99 Title: The Stone Roses Label: Silvertone Price: 4.99 Title: Kid A Label: Parlophone Price: 7.99 Title: Exile on Main St Label: Rolling Stones Records Price: 9.99 Title: It Takes A Nation Of Millions To Hold Us Back Label: Def Jam Price: 7.99 Title: Led Zeppelin Label: Atlantic Price: 4.99 Title: The Southern Harmony and Musical Companion Label: Def American Price: 5.99 Title: Imagine Label: Apple Price: 4.99 2) Modify the above program such that it displays only five rows (title, label and price) in the 'Album' table (sorted by price). A sample program output is 15 marks] Title: Strange Days Label: Elektra Price: 4.99 Title: The Velvet Underground and Nico Label: Verve Price: 4.99 Title: The Top Label: Fiction Price: 4.99 Title: For Your Pleasure Label: Island Price: 4.99 Title: The Stone Roses Label: Silvertone Price: 4.99 [In the answers' document you must include a screenshot from your IDE showing the output)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!