You are on page 1of 1

GROUP WORK­(MAKEUP ASSIGNMENT)

Develop a simple telephone directory which saves your students contact information in a
file named directory.txt. The program should have a menu similar to the following:
­­­­­­­­­­­­­­­­Menu­­­­­­­­­­­­­­­­­­­­­­­­­
1. Add new student.
2. Display contact info.
3. Exit
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­
Enter menu number:

When you press “1” it should request you to enter following data:
­­­­­­­­­New friend info­­­­­­­­
Name : Ragith
Student ID:CST/10/0001
Phone­No: 011­2123456
e­Mail : ragi@uwu.ac.lk

After adding new contact information it should again display the menu. When you press “2” it should
display all the contact information stored in the directory.txt file as follows:
­­­­­­­­­­­­­­Contact info­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­
Name Student ID Tel­No e­Mail
Ragith 077­7123123 ragi@uwu.ac.lk
Kalani 033­4100101 kalani@gmail.com
Saman 011­2123456 saman@uwu.ac.lk
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­

You might also like