You will write a program that keeps names and salaries in a dictionary as key- value pairs. The program should display a menu that lets the user: 1) Look up a person's salary 2) Add a new name and salary 3) Change an existing salary 4) Delete an existing name and salary 5) Display a list of names and salary 6) Exit the program NOTE: Your program should use a separate function for menu items 1-5.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 2PE
icon
Related questions
Question
100%
I do have a question for this. How can I practice this for the exam and how do I know when and where to put comments on the program?
You will write a program that keeps names and salaries in a dictionary as key-
value pairs.
The program should display a menu that lets the user:
1) Look up a person's salary
2) Add a new name and salary
3) Change an existing salary
4) Delete an existing name and salary
5) Display a list of names and salary
6) Exit the program
4
NOTE: Your program should use a separate function for menu items 1-5.
Transcribed Image Text:You will write a program that keeps names and salaries in a dictionary as key- value pairs. The program should display a menu that lets the user: 1) Look up a person's salary 2) Add a new name and salary 3) Change an existing salary 4) Delete an existing name and salary 5) Display a list of names and salary 6) Exit the program 4 NOTE: Your program should use a separate function for menu items 1-5.
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Map
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