How do I understand the functional requirements for this question, which is chapter 9 question 8

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
How do I understand the functional requirements for this question, which is chapter 9 question 8
de entries in the file indicating this.)
Write a program that reads this file and creates a dictionary in which the keys are the names
World Series. The program should also create a dictionary in which the keys are the years,
of the teams, and each key's associated value is the number of times the team has won the
and each key's associated value is the name of the team that won that year.
ne of the team that won in 1903, and the
played
Won in 2009. (Note the World Series was not
The program should prompt the user for a year in the range of 1903 through 2009. It
should then display the name of the team that won the World Series that
number of times that team has won the World Series.
and the
year,
8. Name and Email Addresses
Write a program that keeps names and email addresses in a dictionary as key-value pairs.
The program should display a menu that lets the user look up a person's email address,
add a new name and email address, change an existing email address, and delete an exist-
ing name and email address. The program should pickle the dictionary and save it to a
file when the user exits the program. Each time the program starts, it should retrieve the
dictionary from the file and unpickle it.
9. Blackjack Simulation
Previously in this chapter you saw the card_dealer.py program that simulates cards being
dealt from a deck. Enhance the program so it simulates a simplified version of the game of
Blackjack between two virtual players. The cards have the following values:
• Numeric cards are assigned the value they have printed on them. For example, the value
of the 2 of spades is 2, and the value of the 5 of diamonds is 5.
• Jacks,
qu eens,
and kings are valued at 10.
on the player's choice.
Transcribed Image Text:de entries in the file indicating this.) Write a program that reads this file and creates a dictionary in which the keys are the names World Series. The program should also create a dictionary in which the keys are the years, of the teams, and each key's associated value is the number of times the team has won the and each key's associated value is the name of the team that won that year. ne of the team that won in 1903, and the played Won in 2009. (Note the World Series was not The program should prompt the user for a year in the range of 1903 through 2009. It should then display the name of the team that won the World Series that number of times that team has won the World Series. and the year, 8. Name and Email Addresses Write a program that keeps names and email addresses in a dictionary as key-value pairs. The program should display a menu that lets the user look up a person's email address, add a new name and email address, change an existing email address, and delete an exist- ing name and email address. The program should pickle the dictionary and save it to a file when the user exits the program. Each time the program starts, it should retrieve the dictionary from the file and unpickle it. 9. Blackjack Simulation Previously in this chapter you saw the card_dealer.py program that simulates cards being dealt from a deck. Enhance the program so it simulates a simplified version of the game of Blackjack between two virtual players. The cards have the following values: • Numeric cards are assigned the value they have printed on them. For example, the value of the 2 of spades is 2, and the value of the 5 of diamonds is 5. • Jacks, qu eens, and kings are valued at 10. on the player's choice.
Expert Solution
steps

Step by step

Solved in 4 steps with 6 images

Blurred answer
Knowledge Booster
Data Flow Diagram
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