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

  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.

  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.

  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.

  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.

  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 ..

  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.

  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.

  Console program where you will implement

Create a console program where you will implement coding constructs and variables that are needed for this program and will implement the code within Main and any required static methods.

  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..

  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.

  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.

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