Manage the information of employees in a company

Assignment Help Computer Engineering
Reference no: EM132107253

In this program, you will manage the information of employees in a company. You will read the employees.txt file and store every employee information in a struct called Employee.

You will have an array of Employee structs to keep the information of all employees. The employees.txt file may be in different size.

The first line of the file shows the number of employees. And the rest of the file contains a single employee information in each line.

After you learned the number, you will dynamically define the array size using dynamic memory allocation. Each employee has 5 information such as Employee ID, Employee Name, Department ID, Department Name, and Salary.

Each information will be stored in a field in the Employee struct. Once your struct array is ready, you will provide following operations to the user in a menu.

Print All Employees Print all information of all Employees Print By Department Get an input from the user (department ID) Print all information only for employees in that department Print By Salary Get a salary input from the user Print all employees that have equal or more annual salary to given input Exit Exit from the program As a bonus feature you can add following operations in the menu of your program Print By Name (BONUS Option) Get a character from the user.

Print only the employees whose name starts with that character.

Update Employee Information Get an Emp ID from the user. Ask which information to be updated. Let user update that information of the employee.

Reference no: EM132107253

Questions Cloud

How bioavailability affects the functionality of vitamins : Discuss how food preparation methods affect vitamin bioavailability. Also discuss how to speak with someone regarding the use of dietary supplements
Write a assembly language program to read the contents : When the program memory contains a table starting at address 250H. The table is 5 bytes long and memory location 255H contains 0x00.
Provide at least one advantage and one disadvantage of each. : Name two other methods for assessing body fat or weight status. Provide at least one advantage and one disadvantage of each method.
Producing food requires a great deal of energy : Producing food requires a great deal of energy. How much fossil energy consumption in the United States can be attributed to food production?
Manage the information of employees in a company : You will have an array of Employee structs to keep the information of all employees. The employees.txt file may be in different size.
Nutritional needs and changes to requirements : Review the nutritional needs and changes to requirements during pregnancy. Name 2 key nutritional changes and the importance of meeting the guidelines
Which version of the program would be faster : A new compiler can reduce the number of load instructions by half. Load account for 2/3 of all load/store instructions.
What is the estimated energy requirement for olivia : What is the estimated energy requirement for Olivia? Determine the difference in the estimated energy requirement between Maggie and Olivia.
Write the code that will prompt them for the category : Write the code that will prompt them for the category they want to purchase and you will print out the number of seats available for that type of seat category.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd