CSD110 - Design Specifications Doc - Sample 1
CSD110 - Design Specifications Doc - Sample 1
Introduction to Programming
Design Specs
Sample Doc
Student Name:
Student ID:
Write a Python script for the following scenario:
Sample Output:
1. ………………..
2. ………………..
3. ……………….
4. Exit
DESIGN SPECIFICATIONS
Scope/Purpose: In this python script, ……………. The program accepts user input as
a number which maps to the following choices:
1. ………………….
2. ………………….
3. …………………
4. Exit
Methodology / Programming Sequence:
Defined and initialized the list.
The User is presented with 5 choices.
The program is supposed to run 5 times (or till the user prefers to exit),
which keeps on prompting the user for more input till they exit the
program.
The program also takes in one more input, ’n’ which holds the number of
contacts the program will be working on.
End user interaction:
If the user selects the choice to Add contacts. A loop is started which runs
’n’ times. In each iteration it asks the user for a name and a number which
are then appended to the list1 and list2 defined at the start of the program
After adding this contact, this loop is repeated till user enters all the
contacts. Once all contacts are added, user is again taken back to the main
menu and shown all the choices and is asked for more input.
If the user selects to Search for a contact, user is asked to enter the………
User is presented with an adequate message and is returned to the prompt.