George Mason University Java Coding Dictionary Program
Question Description
Q1: Write a program to
1. Take two inputs:
1. What is your name?
2. What is your favorite hobby?
2. Store the name and hobby in a dictionary
3. Collect a minimum of 3 names
4. Create a flag to terminate the program -Review chapter 7, pages 120-121
5. Print the dictionary
Answer the following question: What is the key for this dictionary?
Q2:
Ask a user to input a favorite dog breed (3 points)
Add the breed to a file (3 points)
Print the message “Your favorite dog breed is a {breed}.” (2 points)
Collect at least three breeds
When the user quits, print the file contents (3 points)
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."