Telephone
Telephone
Telephone
Specification
(Programming Fundamentals Project)
Table of Contents
BACKGROUND ........................................................................................................... 1
1. BUSINESS REQUIREMENTS ...................................................................................... 1
2. LIST OF FILES SUPPLIED ........................................................................................ 1
3. DEPARMENT CODE MAINTENANCE ............................................................................ 2
4. EMPLOYEE MASTER MAINTENANCE ........................................................................... 2
5. TELEPHONE DIRECTORY MAINTENANCE ..................................................................... 3
6. TELEPHONE ENQUIRY ........................................................................................... 3
7. SCREEN DESIGN................................................................................................... 4
Background
This document contains the high level design of the project that has to be executed in order
to complete the course Programming Fundamentals.
The project is a Telephone directory maintenance system, for which portions have been
implemented already.
1. Business Requirements
The following are the business requirements for this project, of which some have been
completed already.
Sl Requirement Status
1 Department code maintenance Completed
2 Employee Master maintenance To be implemented
3 Telephone Directory maintenance To be implemented
4 Telephone Enquiry To be implemented
Sl File Description
1 FileFunctions.c Source file which contains all the functions required to
handle records in file. Functions also have documentation in
function header comment blocks.
2 FileFunctions.h Header file which contains the declaration of all the
functions and constants in FileFunctions.c. Include this in
any new source file that you write to use the functions.
3 DeptMaint.c File containing code to add and view departments in the
department file
4 TelDir.c The main file of telephone directory system. Contains code
for the main menu and department menu.
5 dept.txt File which your program uses to store information about the
departments. (Do not edit this manually)
6 emp.txt File which your program uses to store information about
employees. (Do not edit this manually)
7 SampleCode.c NOT PART OF TELEPHONE DIRECTORY PROJECT. Contains
code samples of how to use the functions in FileFunctions.c
PLEASE NOTE THAT ALL THE CODE SUPPLIED TO YOU HAS ALL THE NECESSARY
DOCUMENTATION IN IT ALREADY.
Add Department
• The department code should be 4 characters long
• The department names should not exceed 15 characters
• The department code should start with 1000. Every new department added
should get a 1 up number for the department code
• The department codes should be unique
• Department names cannot be duplicated. Comparison should be case
insensitive
• The department codes should be generated by the system
• When the user finishes adding new departments, the control should return to
the Department Code Maintenance Screen
6. Telephone Enquiry
Enquiry on Employee Name
• Case insensitive name search should be provided
• If the name does not exist, an error message should be displayed
• If the name exists, the details of all the telephone numbers whose owner names match
should be displayed
• When the user finishes enquiry by employee, the control should return to the
Telephone Enquiry Screen
7. Screen Design
• All the fields with ……… are user inputs
• All fields with ________ are to be generated by the system
• All error messages are to be displayed on the screen
• When an error message is displayed system should wait for a key press
• Error messages should be cleared once the user presses a key
• All validations done should be case insensitive. For e.g. when you ask the user if he wishes
to continue, following inputs are valid: ‘y’ or ‘Y’ or ‘n’ or ‘N’. Any other input is invalid
• User Id for login should be your employee id
• If your employee id is entered for User ID, Main Menu of Telephone Directory Maintenance
System should be displayed
• If any other employee id is entered for User Id, the system should display error message
“Login Denied” and should quit the application