Problem Solving And Program Design Computer Science Essay
The aim of this assignment is to make an application to keep a list of friends contact inside informations utilizing c. plan is chiefly meant for users to identify in their names and contact inside informations, like a phone book. User can add, edit, delete and hunt contacts utilizing portion of their information. Users should be able to quite the bill of fare and add more records whenever they wish to.
To be successful in this undertaking, we have to do a Buddy book which is user friendly and error free as possible.
3. Undertaking description
Our chief aim is to do a brother book which allow users to add contacts, redact them, hunt for a contact by a missive or name, display all contacts and take a contact from the list..
Main bill of fare of the plan provide 5 options.
Add a friend
Modify friends ‘ inside informations
Display all my friends
Search friends
Exit
Adding a contact
When adding a new contact to buddy book user is promote to come in these inside informations.
Enter First Name:
Enter Last Name:
Enter Home Number:
Enter nomadic Number:
Make you wish to add more Numberss to phonebook ( Y/N ) ?
If the user choice is “ Y ” above process is reiterating. If user choice is “ N ” user redirected to chief bill of fare.
Modifying a contact
When a user selects this option it will expose all the saved contacts in buddy book and prompt user to choose a contact by contact order. After choosing the contact figure to redact, plan will give these options to choose.
Full Contact Press 1
First Name Press 2
Last Name Press 3
Home Number Press 4
Mobile Number imperativeness 5
Travel to chief bill of fare imperativeness 6
Exit imperativeness 7
Selection 1-This gives user to modify a full contact. He can modify all the Fieldss in the contact.
Choice 2-if he selects figure two he can merely modify first name of the contact.
Selection 3- If he selects figure three he can merely modify Last name of the contact.
Selection 4- If he selects figure four he can merely modify Home figure of the contact.
Selection 5- If he selects figure five he can merely modify nomadic figure of the contact.
Selection 6- If he selects figure six he will airt to chief bill of fare.
Selection 7- If he selects figure seven plan will go out.
Display all contacts
This will expose the full contacts shop in buddy book. If there is n’t any contacts store in buddy book, it will expose
Phonebook is empty ; make you desire to add contacts? ( Y/N )
If user selects ‘Y ‘ he will motivate to add contact bill of fare. If he select ‘N ‘ he will motivate to chief bill of fare.
Search contacts
In hunt bill of fare there are two options user can choose to make a hunt
Search by first missive
Search by first name
Search by first missive
Users prompt to come in a character and the plan will expose all records with names that start with that character.
Search by first name
This will expose all records starts with that entered name
Flow chart
Main bill of fare
Add contacts menu
Modify bill of fare
Search bill of fare
5. Pseudo codification
Get down
read pick
Case pick
instance 1: Add friends
instance 2: Modify friends inside informations
instance 3: Display all my friends
instance 4: Search friends
instance 5: Exit
default: show “ Invalid choice ”
End instance
read count=0
If ( choice==1 )
If ( count==10 )
show “ You have exceeded the brother book capacity ”
Else
show “ Enter the first name ”
read firstName
show “ Enter the last name ”
read lastName
show “ Enter the place figure ”
read homeNum
show “ Enter the nomadic figure ”
read mobileNum
count=count+1
show “ Data successfully saved! ! ! ”
show “ Do you wish to add more Numberss ( Y/N ) ? ”
read respond
If ( respond==’Y ‘ )
return to instance 1
Else
return to chief bill of fare
End if
End if
Else if ( choice==2 )
show “ Phone book contact list ”
i=0
while ( one & lt ; =count )
show firstName
show lastName
show homeNum
show mobileNum
i++
End while
show “ Enter the figure of the contact that you want to modify ”
read respond
If ( respond & gt ; count ) or ( respond & lt ; 0 )
show “ You have entered an invalid figure. Check and enter the right figure ”
Else
show “ If you want to modify: ”
show “ Full contact Press1 ”
show “ First name Press2 ”
show “ Last name Press3 ”
show “ Home figure Press4 ”
show “ Mobile figure Press5 ”
show “ Enter your pick ”
read respond
If ( respond==1 )
show “ contact you want to modify is: ”
show firstName
show lastName
show homeNum
show mobileNum
show “ Now come in your new informations ”
show “ Enter new first name ”
read firstName
show “ Enter new last name ”
read lastName
show “ Enter new place figure ”
read homeNum
show “ Enter new nomadic figure ”
read mobileNum
show “ Data successfully saved! ! ! ”
show “ Do you desire to modify an another contact ( Y/N ) ? ”
read reply
If ( answer==’Y ‘ )
return to instance 2
Else
return to chief bill of fare
End if
End if
Else if ( respond==2 )
show “ contact you want to modify is: ”
show firstName
show lastName
show homeNum
show mobileNum
show “ Now come in your new informations ”
show “ Enter new first name ”
read firstName
show “ Data successfully saved! ! ! ”
show “ Do you desire to modify an another contact ( Y/N ) ? ”
read reply
If ( answer==’Y ‘ )
return to instance 2
Else
return to chief bill of fare
End if
Else if ( respond==3 )
show “ contact you want to modify is: ”
show firstName
show lastName
show homeNum
show mobileNum
show “ Now come in your new informations ”
show “ Enter new last name ”
read lastName
show “ Data successfully saved! ! ! ”
show “ Do you desire to modify an another contact ( Y/N ) ? ”
read reply
If ( answer==’Y ‘ )
return to instance 2
Else
return to chief bill of fare
End if
Else if ( respond==4 )
show “ contact you want to modify is: ”
show firstName
show lastName
show homeNum
show mobileNum
show “ Now come in your new informations ”
show “ Enter new place figure ”
read homeNum
show “ Data successfully saved! ! ! ”
show “ Do you desire to modify an another contact ( Y/N ) ? ”
read reply
If ( answer==’Y ‘ )
return to instance 2
Else
return to chief bill of fare
End if
Else if ( respond==5 )
show “ contact you want to modify is: ”
show firstName
show lastName
show homeNum
show mobileNum
show “ Now come in your new informations ”
show “ Enter new nomadic figure ”
read mobileNum
show “ Data successfully saved! ! ! ”
show “ Do you desire to modify an another contact ( Y/N ) ? ”
read reply
If ( answer==’Y ‘ )
return to instance 2
Else
return to chief bill of fare
End if
Else
show “ Invalid codification ”
End if
Else if ( choice==3 )
show “ Phone book contact list ”
i=0
while ( one & lt ; =count )
show firstName
show lastName
show homeNum
show mobileNum
i++
End while
Else if ( choice==4 )
read first_char
read given name
show “ Search ”
show “ If you want to seek by: ”
show “ first missive Press1 ”
show “ first name Press2 ”
show “ Enter your choice ”
read choice
If ( choice & lt ; 0 ) or ( choice & gt ; 2 )
show “ Invalid codification ”
Else if ( selection==1 )
show “ hunt by first missive of the name ”
show “ Enter foremost missive to hunt ”
read first_letter
i=0
while ( one & lt ; =count )
i++
If ( first_letter==first_char )
show firstName
show lastName
show homeNum
show mobileNum
Else
show “ No lucifers found ”
End if
End while
Else
show “ hunt by first name ”
show “ Enter foremost name to hunt ”
read given name
i=0
while ( one & lt ; =count )
i++
If ( first_name==firstName )
show firstName
show lastName
show homeNum
show mobileNum
Else
show “ No lucifers found ”
End if
End while
End if
Else if ( choice==5 )
show “ Are you sure that you want to go out ( Y/N ) ? ”
read reply
If ( answer==’Y ‘ )
abort
Else
return to chief bill of fare
End if
Else
show “ Invalid choice ”
show “ Check the bill of fare and come in your pick once more ”
End if
End
6.User Guide
Start bill of fare
This is the chief screen of the buddy book. Press any key to travel to chief bill of fare.
Main bill of fare
You can choose what you want to make by pressing a figure
Add contact
In add new contact bill of fare you can come in a new contact by first name, last name, place figure and Mobile figure
When all contact inside informations are entered the undermentioned message will look. If you select ‘y ‘ you can add more contacts.
Modify contacts
Here you should come in the figure of the contact which you want to modify.
This display the contact you want to modify. Press ‘y ‘ to travel to the modifying bill of fare.
In this bill of fare you can come in what portion of the contact you want to modify.
If you select 1 in old bill of fare this bill of fare appears and user prompt to add new inside informations for selected contact.
Once all the inside informations are entered and imperativeness enter key, this bill of fare appears.If you want to modify another contact imperativeness ‘y’.It will airt to modify bill of fare. If you want to travel to the chief bill of fare imperativeness any cardinal except ‘y ‘ .
Display all contacts
Here you can see all the contacts inside informations you entered.
Contact hunt bill of fare
Here you can choose hunt options. You can seek a contact by first missive of the contact and first name of the contact.
Enter the first missive of the contact and imperativeness enter. It will expose all the contacts start with that missive.
Enter the first name of the contact which you want to seek and so imperativeness enter. It will expose all the contacts which have that first name.
Exit
If you select exit option in any bill of fare this plan aborted window is shows. If you select all right brother book will go out.
7.Limitations
Here we are traveling to state some things about the restrictions in the plan that we developed.
In this plan we had to restrict the figure of contacts to 6.An effort to add more contacts would give an mistake message.
We applied some restrictions when come ining informations. In the instance of figure of characters besides we had to restrict the sum. For the place figure and office figure Fieldss merely whole numbers can be applied and limit that to 15 whole numbers in each field.
Here we can seek a contact merely by first missive and first name. we ca n’t seek a contact by last name or a contact figure.
In this phone book we ca n’t add a in-between name of a individual to the phone book.
In our brother book merely add two Numberss for a individual. If individual have more than two Numberss there are n’t any manner to add all Numberss into a one contact.
8. FURTHER Development
There are some restrictions in the plan that we have developed. One restriction is the sum of contacts that we included in the plan. In a hereafter development we hope to increase the sum of contacts.
In the plan that we developed there are a few Fieldss such as first name, Last name, place figure, nomadic figure etc.In hereafter we would wish to increase these by including Fieldss like e-mail reference and place reference of a contact.
Further we hope to present more methods of seeking contacts in a hereafter development. There are restrictions in the computing machine linguistic communication we used. If we are to utilize a computing machine linguistic communication with graphical user interface, we would be able to present much more synergistic computing machine plan. Therefore in future we would wish to utilize a linguistic communication with GUI.
If we use programming linguistic communications which support GUI, we can set an option to add a existent exposure of a user to his contact inside informations.
Besides we can add a information economy option to the buddy book. So users can hive away contacts and can utilize it in future.
We can add a information sorting option to this plan. So when a user hunt something consequences automatically sorted and show to user. So it becomes more user-friendly.
9. Decision
It is a great pleasance for us to holding got an chance to show some of our thoughts at successful decision of this undertaking. This undertaking gave us an chance to set into pattern some of the lessons that we were taught theoretically at the talk room. We obtained a huge cognition when we engaged practically in this undertaking. We put into pattern the units Functions, Flow charts, Arrays, Structures, Pseudo codes.These are really of import lessons for us In C Language.
This undertaking gave us an chance to work as a squad to accomplish a common end. With that we learnt how to work as a squad with a squad sprit to carry through a common end.