Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions 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.
expand button
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
   ```
expand button
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
Check Mark
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

Knowledge Booster
Background pattern image
Computer Science
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
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education