Question: 1 . 1 ) When launching the program, it should first read any existing ( saved ) contacts from a CSV file named contacts.csv ,
When launching the program, it should first read any existing saved contacts from a CSV file named contacts.csv and display a user notification message when done
The program must properly execute five user commands: list, view, add, del, and exit. Tip: the test script should be used for code validation during development.
The command menu shown below with the programs available user commands should be displayed immediately upon program launch and after displaying the results of each processed command.
When adding and deleting contacts, the changes should be immediately saved to the contacts.csv file. That way, no changes are lost, even if the program crashes later.
Test Script for Part :
Program launch
Contacts file loaded.
COMMAND MENU
list Display all contacts
view View a contact
add Add a contact
del Delete a contact
exit Exit program
Command: list
Guido van Rossum
Eric Idle
Command: view
Number:
Name: Eric Idle
Email: eric@ericidle.com
Phone:
Command: add
Name: Mike Murach
Email: mike@murach.com
Phone:
Mike Murach was added
Command: list
Guido van Rossum
Eric Idle
Mike Murach
Command: view
Number:
Name: Mike Murach
Email: mike@murach.com
Phone:
Command: del
Number:
Guido von Rossum was deleted
Command: list
Eric Idle
Mike Murach
Command: exit
Bye!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
