First, study the lab5_dictionary_starter.py file in D2L. It shows an alternative for the MIPO program model: menu-driven. It still uses functions, exception handling, validation, comments, etc....


First, study the lab5_dictionary_starter.py file in D2L. It shows an alternative for the<br>MIPO program model: menu-driven. It still uses functions, exception handling,<br>validation, comments, etc.<br>COMMAND MENU<br>view - View user names<br>add - Add a user<br>edit - Edit a user<br>del - Delete a user<br>exit - Exit program<br>It uses capitalization methods appropriate to this particular data set (countries).<br>Command: view<br>User names: drmouse mrmouse msmouse<br>Enter user name to view: msmouse<br>1) username_fullname.py For lab, adapt the starter file to create a<br>new dictionary program that stores usernames and fullnames as key-<br>value pairs. The dictionary variable name should be called - users.<br>Full name: Mouse, Minnie<br>Command: add<br>User names: drmouse mrmouse msmouse<br>Enter new user name to add: mrmouse<br>Sorry - Mouse, Mickey has already taken this user name.<br>Command: add<br>User names: drmouse mrmouse msmouse<br>Initialize the users dictionary with 3 usernames and full names (replace countries data)<br>Enter new user name to add: sirmouse<br>Enter full name as shown: Surname, Given_name Mighty Mouse<br>Mighty Mouse was added.<br>Like the sample program, your program should display a menu that lets the user<br>view all the entries; add a new entry, and delete an existing entry. PLUS you need to<br>add a feature: to edit an existing full name.<br>Command: edit<br>User names: drmouse mrmouse msmouse sirmouse<br>Enter user name to edit: sirmouse<br>Current full name is: Mighty Mouse<br>Enter new full name for sirmouse as shown: Surname, Given_name Mouse, Mighty<br>Full name for sirmouse was edited to: Mouse, Mighty.<br>NOTE! you need to adjust the variable names, capitalization methods & user-facing<br>messages to fit the new content.<br>Command: del<br>User names: drmouse mrmouse msmouse sirmouse<br>Enter user name to delete: sirmouse<br>Mouse, Mighty was deleted.<br>Use find and replace to make revision easier, faster & more accurate!<br>Command: exit<br>Вye!<br>

Extracted text: First, study the lab5_dictionary_starter.py file in D2L. It shows an alternative for the MIPO program model: menu-driven. It still uses functions, exception handling, validation, comments, etc. COMMAND MENU view - View user names add - Add a user edit - Edit a user del - Delete a user exit - Exit program It uses capitalization methods appropriate to this particular data set (countries). Command: view User names: drmouse mrmouse msmouse Enter user name to view: msmouse 1) username_fullname.py For lab, adapt the starter file to create a new dictionary program that stores usernames and fullnames as key- value pairs. The dictionary variable name should be called - users. Full name: Mouse, Minnie Command: add User names: drmouse mrmouse msmouse Enter new user name to add: mrmouse Sorry - Mouse, Mickey has already taken this user name. Command: add User names: drmouse mrmouse msmouse Initialize the users dictionary with 3 usernames and full names (replace countries data) Enter new user name to add: sirmouse Enter full name as shown: Surname, Given_name Mighty Mouse Mighty Mouse was added. Like the sample program, your program should display a menu that lets the user view all the entries; add a new entry, and delete an existing entry. PLUS you need to add a feature: to edit an existing full name. Command: edit User names: drmouse mrmouse msmouse sirmouse Enter user name to edit: sirmouse Current full name is: Mighty Mouse Enter new full name for sirmouse as shown: Surname, Given_name Mouse, Mighty Full name for sirmouse was edited to: Mouse, Mighty. NOTE! you need to adjust the variable names, capitalization methods & user-facing messages to fit the new content. Command: del User names: drmouse mrmouse msmouse sirmouse Enter user name to delete: sirmouse Mouse, Mighty was deleted. Use find and replace to make revision easier, faster & more accurate! Command: exit Вye!
Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here