Data file is a comma separated

Assignment Help Python Programming
Reference no: EM13161567

 

Write an employee management system in Python that allows users to add, search, and delete employees. It should store and display five data fields about each employee, which are:

  1. Name
  2. Employee ID
  3. Department
  4. Title
  5. Salary

The program should load the data from a specific file ('Employee.csv') at startup and should save the data to the same file before shutdown. The program should display a menu with the following options:

  1. Add an Employee
  2. Find an Employee (By Name)
  3. Find an Employee (By EID)
  4. Delete an Employee
  5. Display Statistics
  6. Display All Employees
  7. Exit

The data file is a comma separated text values stored in a file with '.CSV' extension. The file has five columns corresponding to employee data fields listed above.

The memory data structure that holds the information is a dictionary with employee names as key and the rest of the fields as a value. The data fields about each employee should also be organized into a dictionary using key/value pairs

Your program will go through the following steps:

a)      Load the data file ("Employee.csv") into a dictionary in the memory,

b)      Create a loop, display the menu, and interact with the user (each menu option will call the appropriate function corresponding that menu option,

c)       Continue displaying the menu (b) until the user selects "Exit" option,

d)      Exit and save all the data to the same file ("Employee.csv")

Employee.csv file has the following sample format:

Name EmployeeID Department Title Salary
John Smith 1000374 Marketing Director 90000
James Brown 1000465 Engineering Manager 80000
Jonathan White 1000578 IT Python Programmer 120000

Write a 'load()' function that loads the data at application startup.

  1. Write the menu system to drive the application (the menu will have the four options described above, but not all options will be functional yet).
  2. Write necessary code to allow users to add a new employee (menu option 1).
  3. Write the necessary functions to save the data and exit the application
  4. For menu options 2 through 6, display a message that those options are not functional yet, and return to the main menu.

 

 

Reference no: EM13161567

Questions Cloud

Explain what mass of the unknown would be required to react : Consider an unknown that is approximately 50.% KHP. What mass of the unknown would be required to react with 40. mL of 0.10 M NaOH?
What are the phenotypic ratios in the f2 progeny : In whippets, wild-type dogs are skinny. A mutation in the myostatin gene causes dogs to become more muscular. Dogs containing one copy of the mutant myostatin gene are medium-muscled; dogs in which both copies of the myostatin gene are mutant are ..
Create student sorting table : Student.txt in the attachment contains the roster of a class. Each student object has the following fields: student id, last name, first name, academic level.Create a RosterClass to store the student database in vector.
Compute the mass of khp needed to react : Calculate the mass (grams) of KHP needed to react with 40. mL of 0.10 M NaOH. B. If 0.7528 g of KHP standard were titrated with NaOH and the endpoint was reached at 36.33 mL
Data file is a comma separated : The data file is a comma separated text values stored in a file with '.CSV' extension. The file has five columns corresponding to employee data fields listed above.
Calculate the amount of stock reagent : Calculate the amount of stock reagent.
State what is the vapor pressure of an aqueous : What is the vapor pressure at 75 degrees celcius of an aqueous solution prepared by the addition of 52.9 g of urea CO(NH2)2 to 178 g of water?
What are the levels of marine zones : What are the levels of marine zones? Where is the aphotic zone? Pelagic zone?
Create a text file named grades.txt : Write a program to calculate students' average test scores and their grades. Creat a text file named  grades.txt

Reviews

Write a Review

Python Programming Questions & Answers

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Design a function that accepts an integer

Design a function that accepts an integer argument and returns the sum of all the integers from 1 up to the number passed as an argument. For example, if 50 is passed as an argument, the function will return the sum of 1, 2, 3, 4, . . . 50. Use recur..

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Program to do the enciphering

Write a program to do the enciphering. It should prompt the user for a message, and print out both the entered message and its corresponding ciphertext.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  The initial number for generating the sequences

Then, after the functions, read in the initial number for generating the sequences. Here, check that it is a positive integer. If it is not, give an error message and exit the program.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Fill in the python code

Fill in the Python code to play Tic Tac Toe. I won't award points unless it runs succesfully. # Tic-Tac-Toe Game def drawBoard(board): # Draws the board using the list of numbers print(" ") print(" ",board[0]," | ",board[1]," | ", board[2]) print("--..

  Define a function to calculate the values

Be sure to define a function to calculate the values and print the table displaying the interest rate in the first column, the monthly payment in the second column, and the total payment in the third column. Your program should not allow the user to ..

  Code for the haunted house game

Improve the game by adding more features, for example you can examine more items, more props etc. You may implement this using more lists regarding items and props, remember, you should check if the object is being carried or in the location of th..

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

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