Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Solve these problems: PROBLEM 3 For this problem you will write a program that, given a list of songs and their release year, shows the

Solve these problems:

image text in transcribedimage text in transcribed

PROBLEM 3 For this problem you will write a program that, given a list of songs and their release year, shows the user: the newest song, the oldest song, and a random song recommendation (a randomly picked song from the list of songs). Consider the list of songs (songs) and their corresponding release year (songsReleaseYear) given below. These lists are related by index, that is, for each i, the ith value in songseleaseYear represents the release year for the ith song in songs. string songs[12] = f"We Found Love", "Old Town Road", "Somebody That I Used To Know", "Despacito", "Rolling in The Deep", "Without Me", "Call Me Maybe", "Perfect", "Blurred Lines", "I Like It", "Just The Way You Are" "; int songsrealeaseYear[12] ={2011,2020,2012,2017,2011,2019,2012,2013,2017,2018,2010}; After completing your program, this is what you should see when you run it (notice that the song recommendation might be different as it is randomly selected): Newest Song in the List: 0ld Town Road Oldest Song in the List: Just The Way You Are Random Song recommendation: Somebody That I Used To Know The program must display: 1. the newest song according to its release year 2. the oldest song according to its release year 3. a song recommendation: a randomly picked song from the list of songs. The arrays below (singersNames and singersAge) contain the names of some singers and their corresponding ages. Write a C++ program that will ask the user to enter a number and it will then display the singers who have that age. string singersNames[18] = \{"Jay Z.", "Eminem Mathers", "Beyonce Knowles", "Cardi B", "Shawn Mendez", "Taylor Swift", "lggy Azalea", "Drake Graham", "Kanye West", "Chris Martin", "Ariana Grande", "Camila Cabello", "Dr. Dre", "Chance the Rapper", "The Weeknd", "Rihanna", "Bruno Mars", "Billie Eilish"l; int singersAges [23]={52,49,40,28,23,31,31,35,44,44,28,23,56,28,31,33,36,20}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

ISBN: 1951077083, 978-1951077082

More Books

Students also viewed these Databases questions