Question: Write a program to read in a video game title with the ESRB rating code included at the end after the double hypen (-),

Write a program to read in a video game title with the ESRB rating code included at the end after the double hypen ("-"), for example: Age of Empires II: Definitive Edition--T The program should output the game title (without double hyphen and rating code) and text stating which age group it is suitable for Use the following chart to determine the age suitability: ESRB Rating Code E E10+ T Age Suitability suitable for all ages suitable for ages 10 and up suitable for ages 13 and up suitable for ages 17 and up suitable for ages 18 and up M AO Use ONLY topics covered in Modules 1-4 to solve question. Below are 4 separate sample runs (user input is shown in bold underline) Sample Run #11 Enter the video game with ESRB rating: Grand Theft Auto V--M Grand Theft Auto V is suitable for ages 17 and up Sample Run #2 Enter the video game with ESRB rating: Planet Coaster--E Planet Coaster is suitable for all ages Sample Run #3 Enter the video game with ESRB rating: Civilization VI--E10+ Civilization VI is suitable for ages 10 and up Sample Run #4 Enter the video game with ESRB rating: Terraria--T Terraria is suitable for ages 13 and up
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
