Question: C++ program (50pts) Modify the provided code to create a program that lets the user enter (from the console) a rating for the following games:
(50pts) Modify the provided code to create a program that lets the user enter (from the console) a rating for the following games: Legend of Zelda, Super Mario Bros., Portal, Final Fantasy Xil, Pac- Man, and Tetris. Store each value into an array of doubles named ratings. The program should calculate and display to the screen: 3. The user's average game rating. The highest and lowest game and rating. o . Use separate loops when inputting ratings, calculating the average, and finding the games with the highest and lowest ratings Sample Output Please enter a rating for the following games. Legend of Zelda 9.6 Super Mario Bros.9.4 Portal Final Fantasy XII8.9 Pac-Man Tetris :10.0 : 8.6 : 8.0 Average rating 9.1 Highest rating Lowest rating : Portal rated 10.8 : Tetris rated 8. Hint: Use an array of strings to store the game titles: const string GAMES[] {"Legend of Zelda", "Super Mario Bros.", "Portal", "Final Fantasy XII", "Pac-Man", "Tetris") GAMES and ratings are parallel arrays. When finding the highest and lowest ratings, save the index to that day in a variable rather than the actual value. Example: int index2; cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
