![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Q: how to start a service when system start | acerlinux | AIX | 4 | 04-03-2009 10:37 PM |
| HP 10.20 Won start | hutchin | UNIX for Dummies Questions & Answers | 1 | 12-09-2005 02:13 PM |
| where to put an application if i want to start it on start up | shukla_chanchal | Linux | 3 | 11-03-2005 10:12 PM |
| How do I start a program when I start my Computer? | l008com | UNIX for Dummies Questions & Answers | 1 | 06-23-2002 09:30 PM |
| Were do I start? | pcoste | UNIX for Dummies Questions & Answers | 1 | 08-26-2001 05:26 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How do i start this? (Help)
Write a sh or bash script to manage the customers’ information. The script should allow the user to add and remove a customer, display all customers (sorted by LastName, FirstName, PhoneNumber, Company, or Email), and search a customer's information by his/her name. The script should be menu-based with the following options:
Main Menu: (a) Add a customer (r) Remove a customer (s) Search a customer (d) Display all customers’ information (e) Exit Your choice? Add Submenu: Please input First Name: Feng Please input Last Name: Gu Please input Phone Number: 1‐404‐5555555 Please input Company/Organization: Georgia State University Please input Email: fenggu9083@gmail.com A new customer has been added. Remove Submenu: Please input First Name: Feng Please input Last Name: Gu Feng Gu has been deleted from the system. Search Submenu: Please input the customer’s First or Last name: Feng First Name: Feng Last Name: Gu Phone Number: 1‐404‐5555555 Company/Organization: Georgia State University Email: fenggu9083@gmail.com First Name: Feng Last Name: Xu Phone Number: 1‐770‐5555555 Company/Organization: Georgia Pacific Email: fengtan@gmail.com Display Submenu: (1) Display all (2) Display all sorted by Last Name (3) Display all sorted by First Name (4) Display all sorted by Phone Number (5) Display all sorted by Company/Organization (6) Display all sorted by Email (7) Return to Main Menu Your choice?3 All customers sorted by First Name First Name: Feng Last Name: Gu Phone Number: 1‐404‐5555555 Company/Organization: Georgia State University Email: fenggu9083@gmail.com First Name: Tom Last Name: Jackson Phone Number: 1‐678‐5555555 Company/Organization: Georgia Power Email: Jackson@gmail.com Note: For all submenus, please return to the main menu after an action is done. Each customer entry should include FirstName, LastName, PhoneNumber, Company/Organization, and Email. All entries must be stored in a text file customers.txt the following format (“:” is the separator.): |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|