0% found this document useful (0 votes)
58 views8 pages

1-B Output

The document describes a menu driven address book program that allows users to perform CRUD operations on contacts by choosing options from the menu. It demonstrates creating, viewing, inserting, deleting, modifying and searching contacts in an address book data file.

Uploaded by

rangrezinc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views8 pages

1-B Output

The document describes a menu driven address book program that allows users to perform CRUD operations on contacts by choosing options from the menu. It demonstrates creating, viewing, inserting, deleting, modifying and searching contacts in an address book data file.

Uploaded by

rangrezinc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Output:

------------------------------
1 --> Create
2 --> View
3 --> Insert
4 --> Delete
5 --> Modify
6 --> Search
7 --> Exit

Enter your choice: 3


Enter name: dhanu
Enter email : dnk@gmail.com
Enter phone number : 9856325632
Enter age : 20
Enter address : aurangabad

Data inserted to addressbook.txt.

------------------------------
1 --> Create
2 --> View
3 --> Insert
4 --> Delete
5 --> Modify
6 --> Search
7 --> Exit

Enter your choice: 2

---- Record of address book ----

dhanu dnk@gmail.com 9856325632 20 aurangabad

------------------------------
1 --> Create
2 --> View
3 --> Insert
4 --> Delete
5 --> Modify
6 --> Search
7 --> Exit

Enter your choice: 3


Enter name: ramesh
Enter email : ramesh@gmail.com
Enter phone number : 9854547478
Enter age : 22
Enter address : pune

Data inserted to addressbook.txt.

------------------------------
1 --> Create
2 --> View
3 --> Insert
4 --> Delete
5 --> Modify
6 --> Search
7 --> Exit

Enter your choice: 4

---- Record of address book ----

dhanu dnk@gmail.com 9856325632 20 aurangabad


ramesh ramesh@gmail.com 9854547478 22 pune

Enter user email to delete record: ramesh

---- Record of address book ----

dhanu dnk@gmail.com 9856325632 20 aurangabad

------------------------------
1 --> Create
2 --> View
3 --> Insert
4 --> Delete
5 --> Modify
6 --> Search
7 --> Exit

Enter your choice:

Dhananjay@LAPTOP-D9RGE77I MINGW64 /d/Ubuntu18/osl/practical1


$ ./addressbook.sh

------------------------------
1 --> Create
2 --> View
3 --> Insert
4 --> Delete
5 --> Modify
6 --> Search
7 --> Exit

Enter your choice: 3


Enter name: ramesh
Enter email : ramesh@gmail.com
Enter phone number : 1010101010
Enter age : 25
Enter address : pune

Data inserted to addressbook.txt.

------------------------------
1 --> Create
2 --> View
3 --> Insert
4 --> Delete
5 --> Modify
6 --> Search
7 --> Exit

Enter your choice: 5

---- Record of address book ----

dhanu dnk@gmail.com 9856325632 20 aurangabad


ramesh ramesh@gmail.com 1010101010 25 pune

Enter number to modify:


1010101010
Enter new number to modify:
9898989898

---- Record of address book ----

dhanu dnk@gmail.com 9856325632 20 aurangabad


ramesh ramesh@gmail.com 9898989898 25 pune

------------------------------
1 --> Create
2 --> View
3 --> Insert
4 --> Delete
5 --> Modify
6 --> Search
7 --> Exit

Enter your choice:


Dhananjay@LAPTOP-D9RGE77I MINGW64 /d/Ubuntu18/osl/practical1
$ ^C

Dhananjay@LAPTOP-D9RGE77I MINGW64 /d/Ubuntu18/osl/practical1


$

Dhananjay@LAPTOP-D9RGE77I MINGW64 /d/Ubuntu18/osl/practical1


$ ./addressbook.sh

------------------------------
1 --> Create
2 --> View
3 --> Insert
4 --> Delete
5 --> Modify
6 --> Search
7 --> Exit

Enter your choice: 6

Enter name to search: ramesh

---- Search result ----

ramesh ramesh@gmail.com 9898989898 25 pune

------------------------------
1 --> Create
2 --> View
3 --> Insert
4 --> Delete
5 --> Modify
6 --> Search
7 --> Exit

Enter your choice: 7


Exit.

Dhananjay@LAPTOP-D9RGE77I MINGW64 /d/Ubuntu18/osl/practical1


$

Dhananjay@LAPTOP-D9RGE77I MINGW64 /d/Ubuntu18/osl/practical1


$ ./addressbook.sh

---------dressbook.txt created.
1 --> Create
------------------------------
1 --> Create
2 --> Viewte
3 --> Insert
4 --> Delete
5 --> Modify
6 --> Search
7 --> Exit choice: 1

Enter your choice: name: myaddressbook

myaressbook
Dhananjay@LAPTOP-D9RGE77I MINGW64 /d/Ubuntu18/osl/practical1
$

Dhananjay@LAPTOP-D9RGE77I MINGW64 /d/Ubuntu18/osl/practical1


$ ./addressbook.sh

------------------------------
1 --> Create
2 --> View
3 --> Insert
4 --> Delete
5 --> Modify
6 --> Search
7 --> Exit

Enter your choice: 1

Enter address book name: myaddressbook

myaddressbook.txt created.

------------------------------
1 --> Create
2 --> View
3 --> Insert
4 --> Delete
5 --> Modify
6 --> Search
7 --> Exit

Enter your choice: 3


Enter name: Dhananjay
Enter email : dnkuber@gmail.com
Enter phone number : 8956232102
Enter age : 20
Enter address : Aurangabad
Data inserted to myaddressbook.txt.

------------------------------
1 --> Create
2 --> View
3 --> Insert
4 --> Delete
5 --> Modify
6 --> Search
7 --> Exit

Enter your choice: 3


Enter name: Suresh
Enter email : suresh@gmail.com
Enter phone number : 8585252565
Enter age : 25
Enter address : Pune

Data inserted to myaddressbook.txt.

------------------------------
1 --> Create
2 --> View
3 --> Insert
4 --> Delete
5 --> Modify
6 --> Search
7 --> Exit

Enter your choice: 3


Enter name: Piyush
Enter email : piyush@hotmail.com
Enter phone number : 8745214521
Enter age : 22
Enter address : Jalna

Data inserted to myaddressbook.txt.

------------------------------
1 --> Create
2 --> View
3 --> Insert
4 --> Delete
5 --> Modify
6 --> Search
7 --> Exit

Enter your choice: 2


---- Record of address book ----

Dhananjay dnkuber@gmail.com 8956232102 20 Aurangabad


Suresh suresh@gmail.com 8585252565 25 Pune
Piyush piyush@hotmail.com 8745214521 22 Jalna

------------------------------
1 --> Create
2 --> View
3 --> Insert
4 --> Delete
5 --> Modify
6 --> Search
7 --> Exit

Enter your choice: 4

---- Record of address book ----

Dhananjay dnkuber@gmail.com 8956232102 20 Aurangabad


Suresh suresh@gmail.com 8585252565 25 Pune
Piyush piyush@hotmail.com 8745214521 22 Jalna

Enter user name to delete record: Suresh

---- Record of address book ----

Dhananjay dnkuber@gmail.com 8956232102 20 Aurangabad


Piyush piyush@hotmail.com 8745214521 22 Jalna

------------------------------
1 --> Create
2 --> View
3 --> Insert
4 --> Delete
5 --> Modify
6 --> Search
7 --> Exit

Enter your choice: 5

---- Record of address book ----

Dhananjay dnkuber@gmail.com 8956232102 20 Aurangabad


Piyush piyush@hotmail.com 8745214521 22 Jalna
Enter number to modify:
8745214521
Enter new number to modify:
8899665588

---- Record of address book ----

Dhananjay dnkuber@gmail.com 8956232102 20 Aurangabad


Piyush piyush@hotmail.com 8899665588 22 Jalna

------------------------------
1 --> Create
2 --> View
3 --> Insert
4 --> Delete
5 --> Modify
6 --> Search
7 --> Exit

Enter your choice: 6

Enter name to search: Dhananjay

---- Search result ----

Dhananjay dnkuber@gmail.com 8956232102 20 Aurangabad

------------------------------
1 --> Create
2 --> View
3 --> Insert
4 --> Delete
5 --> Modify
6 --> Search
7 --> Exit

Enter your choice: 7


Exit.

You might also like