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

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 9PE
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT