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 a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  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.

  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.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  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.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  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.

  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.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  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.

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