Thread: tomorrow is last day to submit

  1. #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”

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    You better get started then.

  3. #3
    3735928559
    Join Date
    Mar 2008
    Location
    RTP
    Posts
    838
    Code:
    if(haveAttemptedAssignment)
    {
      postCode();
    }
    else
    {
      DO_YOUR_OWN_HOMEWORK();
    }

  4. #4
    Registered User
    Join Date
    Oct 2006
    Location
    Canada
    Posts
    1,243
    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.

  5. #5
    Registered User
    Join Date
    Oct 2008
    Posts
    1,262
    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...

  6. #6
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,472
    hahah that is beyond the pale, the words 'brass' and 'neck' come to mind

  7. #7
    Registered User
    Join Date
    Oct 2009
    Location
    While(1)
    Posts
    377
    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

  8. #8
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,472
    maybe its submitted by bill gates? perhaps a problem with keeping tabs on the payroll of worker drone squadron in sector g5

  9. #9
    3735928559
    Join Date
    Mar 2008
    Location
    RTP
    Posts
    838
    today is the first day for FAIL.

  10. #10
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    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.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  11. #11
    Registered User
    Join Date
    Oct 2008
    Posts
    1,262
    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...

  12. #12
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    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.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  13. #13
    Registered User
    Join Date
    Oct 2009
    Location
    somewhere in terran
    Posts
    12
    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!

  14. #14
    Registered User
    Join Date
    Oct 2008
    Posts
    1,262
    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?

  15. #15
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Yesterday, Today and Tomorrow
    By happyclown in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 01-29-2009, 08:36 AM
  2. Should I learn a FULL language first?
    By Raeliean in forum Game Programming
    Replies: 8
    Last Post: 07-16-2005, 06:59 PM
  3. error with code
    By duffy in forum C Programming
    Replies: 8
    Last Post: 10-22-2002, 09:45 PM
  4. debug program
    By new_c in forum C Programming
    Replies: 3
    Last Post: 03-18-2002, 11:50 PM
  5. Simplified code
    By soonerfan in forum C Programming
    Replies: 2
    Last Post: 12-05-2001, 03:50 PM

Tags for this Thread