C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 10-20-2009, 07:15 AM   #1
Registered User
 
Join Date: Oct 2009
Posts: 1
tomorrow is last day to submit

:insert
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  
Old 10-20-2009, 07:20 AM   #2
and the Hat of Guessing
 
tabstop's Avatar
 
Join Date: Nov 2007
Posts: 8,740
You better get started then.
tabstop is offline  
Old 10-20-2009, 07:21 AM   #3
3735928559
 
Join Date: Mar 2008
Posts: 662
Code:
if(haveAttemptedAssignment)
{
  postCode();
}
else
{
  DO_YOUR_OWN_HOMEWORK();
}
m37h0d is offline  
Old 10-20-2009, 02:29 PM   #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  
Old 10-20-2009, 02:46 PM   #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  
Old 10-21-2009, 03:25 AM   #6
Registered User
 
rogster001's Avatar
 
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  
Old 10-21-2009, 03:30 AM   #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  
Old 10-21-2009, 03:37 AM   #8
Registered User
 
rogster001's Avatar
 
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  
Old 10-21-2009, 07:56 AM   #9
3735928559
 
Join Date: Mar 2008
Posts: 662
today is the first day for FAIL.
m37h0d is offline  
Old 10-21-2009, 08:51 AM   #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:
Originally Posted by cpjust
If C++ is 2 steps forward from C, then I'd say Java is 1 step forward and 2 steps back.
Elysia is offline  
Old 10-21-2009, 10:04 AM   #11
Registered User
 
Join Date: Oct 2008
Posts: 452
Quote:
Originally Posted by Elysia View Post
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.
Actually, if you fail that badly, I think you kinda deserve to have it rubbed in...
EVOEx is online now  
Old 10-21-2009, 10:07 AM   #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:
Originally Posted by cpjust
If C++ is 2 steps forward from C, then I'd say Java is 1 step forward and 2 steps back.
Elysia is offline  
Old 10-22-2009, 09:23 AM   #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  
Old 10-22-2009, 09:35 AM   #14
Registered User
 
Join Date: Oct 2008
Posts: 452
Quote:
Originally Posted by mkmk007 View Post
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!
Then, would you start one day prior to the deadline?
EVOEx is online now  
Old 10-22-2009, 09:37 AM   #15
the hat of redundancy hat
 
nvoigt's Avatar
 
Join Date: Aug 2001
Location: Hannover, Germany
Posts: 2,754
Homework policy
__________________
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  
Closed Thread

Tags
c++

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 05:01 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22