• Your program should start by declaring and setting a list variable: g_list = ['Mortal Kombat', 'Contra', 'Streets of Rage', 'Shinobi', 'Sonic', 'Phantasy Star'] • Your program must use the input function • Your program must loop through g_list to print out the values

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
- Your program should start by declaring and setting a list variable: `g_list = ['Mortal Kombat', 'Contra', 'Streets of Rage', 'Shinobi', 'Sonic', 'Phantasy Star']`
- Your program must use the input function.
- Your program must loop through `g_list` to print out the values.
Transcribed Image Text:- Your program should start by declaring and setting a list variable: `g_list = ['Mortal Kombat', 'Contra', 'Streets of Rage', 'Shinobi', 'Sonic', 'Phantasy Star']` - Your program must use the input function. - Your program must loop through `g_list` to print out the values.
The task involves presenting the user with a list of top Sega games. The user is prompted to select a game they would like to remove from the list. Once the selection is made, the updated list is shown without the removed game.

### List of Games:
- Mortal Kombat
- Contra
- Streets of Rage
- Shinobi
- Sonic
- Phantasy Star

### Expected Output:
1. Display the initial list of top Sega games:
   ```
   Here are the top Sega games:
   
   Mortal Kombat
   Contra
   Streets of Rage
   Shinobi
   Sonic
   Phantasy Star
   ```

2. Prompt the user for a game to remove:
   ```
   Which one do you think should be removed?
   ```

3. Display the updated list after removing "Contra":
   ```
   Here are the new top Sega games:
   
   Mortal Kombat
   Streets of Rage
   Shinobi
   Sonic
   Phantasy Star
   ```
Transcribed Image Text:The task involves presenting the user with a list of top Sega games. The user is prompted to select a game they would like to remove from the list. Once the selection is made, the updated list is shown without the removed game. ### List of Games: - Mortal Kombat - Contra - Streets of Rage - Shinobi - Sonic - Phantasy Star ### Expected Output: 1. Display the initial list of top Sega games: ``` Here are the top Sega games: Mortal Kombat Contra Streets of Rage Shinobi Sonic Phantasy Star ``` 2. Prompt the user for a game to remove: ``` Which one do you think should be removed? ``` 3. Display the updated list after removing "Contra": ``` Here are the new top Sega games: Mortal Kombat Streets of Rage Shinobi Sonic Phantasy Star ```
Expert Solution
Explanation

1) Since you have not specified programming language, I have written program in python programming language

2) Below is program that defines the list of top saga games, then prompt user which one they would like to remove, then show the updated list again

  • It first defines list of top Sega games
  • Display the top Sega games
  • Prompt user to which one they would like to remove
  • Remove selected game from list
  • Display the new top Sega games

3) Save Program in python file and run

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Linked List Representation
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education