Question: 1 . 1 ) When launching the program, it should first read any existing ( saved ) contacts from a CSV file named contacts.csv ,

1.1) 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
1.2) 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.
1.3) 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.
1.4) 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 1:
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
1. Guido van Rossum
2. Eric Idle
Command: view
Number: 2
Name: Eric Idle
Email: eric@ericidle.com
Phone: +442079460958
Command: add
Name: Mike Murach
Email: mike@murach.com
Phone: 559-123-4567
Mike Murach was added
Command: list
1. Guido van Rossum
2. Eric Idle
3. Mike Murach
Command: view
Number: 3
Name: Mike Murach
Email: mike@murach.com
Phone: 559-123-4567
Command: del
Number: 1
Guido von Rossum was deleted
Command: list
1. Eric Idle
2. Mike Murach
Command: exit
Bye!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!