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

  Find the deciphering map and then decipher the message

MA3626 - Find the number of possible encryption exponents and Find the deciphering map and then decipher the message - Find the largest possible value

  What is the lumpiness of the segmented markets

What is the lumpiness of the segmented markets and how can they be overcome explain with an example? What are the other features that relate to technology.

  Write a program that will read in a length in feet

Write a program that will read in a length in feet and inches and output the equivalent length in meters and centimeters.

  For the arithmetic expressions below draw a binary tree

question for the arithmetic expressions below draw a binary tree that represents the expression and then use tree

  Write the algorithm to simulate this process

Your little brother Phil likes only the yellow ones, so he painstakingly takes out all the candies one by one, eats the yellow ones, and keeps the others.

  What would be an appropriate approach to prove statement

What would be an appropriate approach to prove the statement? As a class try to piece has out-degree 0.

  How does the cpu time change from one value of disks to next

Confirm that the running time1 for the program hanoi increases approximately like a constant. How does the CPU time change from one value of disks to the next?

  Design a method that calculates cost of a semesters tuition

Design a method that calculates the cost of a semester's tuition for a college student at Mid-State University.

  How could pdp augment memory in evaluating

How could PDP augment memory in evaluating the potential risk in this and other potentially threatening situations.

  Summarise the top three tutorials for tools you deem ideal

Create an essay (350-500 words) in which you summarise the top three tutorials for tools you deem ideal for creating your Group Project's blog-based website

  What types of documents would create using microsoft word

What types of documents would you create using Microsoft word. Share one example of how you would use this tool in your personal or professional life

  Explore a computer technology

ITD102: Computer Technology Fundamentals Module: Mini-Project. The objective of the project is to explore a computer technology beyond that covered in the practical's and lecture. It is not expected that you will build and program a new computer sy..

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