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