![]() |
| | #1 |
| Registered User Join Date: Oct 2009
Posts: 1
| tomorrow is last day to submit Code: Write a C++ program to implement employee directory, which will let the organization to perform the following functions:
1) Insert the record of new employee
2) Delete the record of an existing employee
3) Find the record of an existing employee
4) Display Report
Following information of each employee will be stored
Employee ID: an integer value to store the unique id for each employee
Employee Name: the name of each employee.
Employee Address: Address of each employee
Employee Salary: a float value to store salary of each employee.
Hint:
Following information of each employee will be stored
Employee ID: an integer value to store the unique id for each employee
Employee Name: the name of each employee.
Employee Address: Address of each employee
Employee Salary: a float value to store salary of each employee.
You can use the following structure to store the information of a single employee:
Struct Employee {
Int empID;
Char *empName;
Char *empAddress;
Float empSalary;
Employee * pNext;
}Following is the sample interaction:
Welcome to <company name> employee directory:
1) Insert New employee
2) Find employee
3) Delete a record
4) Display Report
5) Exit
Enter your choice: 1
Enter EmpID: 1
Enter EmpName: Ali
Enter EmpAddress: VU, Lahore
Enter Emp Salary: 20000
Record successfully inserted (Press any Key to continue….)
After the user presses any key the screen will be cleared and the menu will be displayed again.
Welcome to <company name> employee directory:
1) Insert New employee
2) Find employee
3) Delete a record
4) Display Report
5) Exit
Enter your choice: 3 (Now user enters 3)
Enter EmpID: 1
Record successfully deleted (Press any key to continue…)
After user presses any key the screen will be cleared and menu will be displayed again.
Welcome to <company name> employee directory:
1) Insert New employee
2) Find employee
3) Delete a record
4) Display Report
5) Exit
Enter your choice: 2 (Now user enters 3)
Enter EmployeID: 1
Employee successfully deleted (Press any key to continue…)
After user presses any key the screen will be cleared and menu will be displayed again
Welcome to <company name> employee directory:
1) Insert New employee
2) Find employee
3) Delete a record
4) Display Report
5) Exit
Enter your choice: 4 (Now user enters 4)
EmpID EmpName EmpAddress EmpSalary
2 Raza VU, Lahore 20000
3 Waseem VU, Lahore 25000
5 Aslam VU, Lahore 20000
Press any key to continue…
After user presses any key the screen will be cleared again and menu will be displayed
Welcome to <company name> employee directory:
6) Insert New employee
7) Find employee
1) Delete a record
2) Display Report
3) Exit
Enter your choice: 5 (Now user enters 5)
Are you sure, you want to exit(y/n) y
Program exited if user presses “y” and menu will be displayed again if user presses “n”
|
| asad_fit786 is offline |
| | #2 |
| and the Hat of Guessing Join Date: Nov 2007
Posts: 8,740
| You better get started then. |
| tabstop is offline |
| | #3 |
| 3735928559 Join Date: Mar 2008
Posts: 662
| Code: if(haveAttemptedAssignment)
{
postCode();
}
else
{
DO_YOUR_OWN_HOMEWORK();
}
|
| m37h0d is offline |
| | #4 |
| Registered User Join Date: Oct 2006 Location: Canada
Posts: 848
| if we do the assignment, do we get the marks? if its due tomorrow, you certainly already started working on it. so post your code and the specific problem youve run into. also post any compiler errors/warnings if any. |
| nadroj is offline |
| | #5 |
| Registered User Join Date: Oct 2008
Posts: 452
| May I please say: HAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAhaHAHahAhaHAhAH ahaHahaHAhAhahAhaHAhAhaHAhhahAhaHaHAhAhAhaAha Sorry, but you're an idiot. Well, unless you already got something and just didn't post it. If you didn't start yet, forget it. I really doubt you have enough brains to do it. On the side note, I'll do it for 2000 dollar... |
| EVOEx is online now |
| | #6 |
| Registered User Join Date: Aug 2006 Location: Liverpool UK
Posts: 241
| hahah that is beyond the pale, the words 'brass' and 'neck' come to mind |
| rogster001 is offline |
| | #7 |
| Registered User Join Date: Oct 2009 Location: While(1)
Posts: 316
| U got some home work from class correct then you want that every cprogramming forum member will do it on your behalf and in front of class girls you will be come hero ![]() Whatz rubbish man you should try it first there are hints also in your assignment try to implement first |
| RockyMarrone is offline |
| | #8 |
| Registered User Join Date: Aug 2006 Location: Liverpool UK
Posts: 241
| maybe its submitted by bill gates? perhaps a problem with keeping tabs on the payroll of worker drone squadron in sector g5 |
| rogster001 is offline |
| | #9 |
| 3735928559 Join Date: Mar 2008
Posts: 662
| today is the first day for FAIL. |
| m37h0d is offline |
| | #10 | |
| Mysterious C++ User Join Date: Oct 2007
Posts: 14,099
| Come on people, do we have to be rude and joke at other peoples' expense? Is it not enough that we have told the OP to do the homework him/herself? Anything else are just pointless posts.
__________________ Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System I dedicated my life to helping others. This is only a small sample of what they said: "Thanks Elysia. You're a programming master! How the hell do you know every thing?" Quoted... at least once. Quote:
| |
| Elysia is offline |
| | #11 |
| Registered User Join Date: Oct 2008
Posts: 452
| Actually, if you fail that badly, I think you kinda deserve to have it rubbed in... |
| EVOEx is online now |
| | #12 | |
| Mysterious C++ User Join Date: Oct 2007
Posts: 14,099
| No, you do NOT. Some people just do not know any better. Other people are desperate. Sometimes, teachers in classes just do not give out students a lot of info, making them fend for themselves. The students do NOT deserve this kind of treatment.
__________________ Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System I dedicated my life to helping others. This is only a small sample of what they said: "Thanks Elysia. You're a programming master! How the hell do you know every thing?" Quoted... at least once. Quote:
| |
| Elysia is offline |
| | #13 |
| Registered User Join Date: Oct 2009 Location: somewhere in terran
Posts: 7
| yes, it's exetremely frustrating that facing a bunch of formulae and your teacher urge you to turn them into coding when you have no head in it! |
| mkmk007 is offline |
| | #14 |
| Registered User Join Date: Oct 2008
Posts: 452
| |
| EVOEx is online now |
| | #15 |
| the hat of redundancy hat Join Date: Aug 2001 Location: Hannover, Germany
Posts: 2,754
|
__________________ hth -nv She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate." When in doubt, read the FAQ. Then ask a smart question. |
| nvoigt is offline |
![]() |
| Tags |
| c++ |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Yesterday, Today and Tomorrow | happyclown | General Discussions | 6 | 01-29-2009 08:36 AM |
| Should I learn a FULL language first? | Raeliean | Game Programming | 8 | 07-16-2005 06:59 PM |
| error with code | duffy | C Programming | 8 | 10-22-2002 09:45 PM |
| debug program | new_c | C Programming | 3 | 03-18-2002 11:50 PM |
| Simplified code | soonerfan | C Programming | 2 | 12-05-2001 03:50 PM |