For this Lab, you will use everything you have learned

For this Lab, you will use everything you have learned in this class to create an Employee Database.  The Employee Database will contain the names of employees, their Salaries, their job Titles, their home Address, and their Contact info [MUST HAVE  “John Appletree and Chief Information Officer for John’s Title].   There is one catch:  The employee Database WILL be a second file that is imported into the file you use to edit the database.  So to recap, you will create a file, named EmployeeDatabase.py that contains the Employee Database.  You will create a second file called EmployeeDirectory.py that provides the user with the ability to read any item contained in the Employee Database.  You are free to use whichever method you want, but you DO NOT need to save anything to a file.     NOTE:  I will provide 10 extra credit points if you save the database to a file (Excel, JSON, etc) as well-formatted. Do not use a text file, as you have seen this can be a problem.   Functions and Files:

  • File named EmployeeDatabase,py
    • only required to have one function that holds the database in whatever form you want:  list, dictionary, JSON, XML
    • This function, named below, will check if the name is in the database and return the value to the calling function in EmployeeDirectory.py
    • companyRegistry()
      • If you choose to use a file, you will first need to open the file, search it for the persons name, then return the key:value pairs to the calling function.  The external file will only hold the Employee names and their respective attributes, you still need the EmployeeDatabase.py file to search for the value and return it to the EmployeeDirectory.py file.
      • Ensure you have the name    “John Appletree” in your database with the following Title Chief Information Officer.
  • File named EmployeeDirectory.py
    • Need to have a function that welcomes the user and determines if they wish to print a specific part of the database.  All you need to do is print the value associated with the field requested by the user.  For instance, if I want to print out Andy’s salary, it should only print the number associated with his salary.  The function can be called Menu().  This function will call the companyRegistry() function that is contained in the EmployeeDatabase.py file.  Also, I would suggest using a try: catch block and putting that in a while loop.  This way you can make sure the user inputs a persons name and not some other data type without crashing your program.  
    • Menu()

    Rurbic:

  • I will deduct 30 points if you fail to create two files, one for the database and one for the editor. 
  • I will deduct 50 points if your program does not run
  • I will deduct 20 points if you fail to get the database to print
  • I will add 10 points if you save the database to a file

Additional Resource:  Please review this site to see how to implement a database using a dictionary, should you choose to do it that way.https://developer.rhino3d.com/guides/rhinopython/python-dictionary-database/

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

Write a Sustainability Report https://www.theredsea.sa/en/destination/sustainability https://www.ca-ilg.org/sustainability-best-practices-framework 1. Your report should

  Write a Sustainability Report  https://www.theredsea.sa/en/destination/sustainability https://www.ca-ilg.org/sustainability-best-practices-framework 1. Your report should consist of a Heading, Index, Author and Date 2. Your report has to have an Introduction paragraph, Body 3-5 paragraphs, Conclusion paragraph and your own recommendation paragraph 3. Your report has to include ALL 5 principles with their descriptions 

Strategic, Operational, and Tactical Intelligence

 Strategic, Operational, and Tactical Intelligence Prior to beginning work on this discussion, please complete the assigned readings and access and review the required websites. During this discussion, you will examine the contributory roles of strategic, operational, and tactical intelligence in the prevention, mitigation, and recovery from domestic hostilities, threats, hazards

Please submit your EXCEL file with summary here – MUST

Please submit your EXCEL file with summary here – MUST BE DONE IN EXCEL – I have to show the teacher how I got the answers so please use formulas in excel or use a pivot table if needed Location analysis is one function of operations management. Deciding where to locate a

Purposeful Sampling and Saturation. – Premium Paper Help

Premium Paper Help is a professional writing service that provides original papers. Our products include academic papers of varying complexity and other personalized services, along with research materials for assistance purposes only. All the materials from our website should be used with proper references.

Hospitals and other healthcare settings will often implement Transmission-Based Precautions

  Hospitals and other healthcare settings will often implement Transmission-Based Precautions to prevent or help reduce the spread of infections to healthcare workers, as well other patients in their care. These Transmission-Based Precautions are designed to supplement standard precautions in patients/residents with documented or suspected infection/colonization of highly transmissible or epidemiologically important

Select a group of people you believe meets John Swales’

 Select a group of people you believe meets John Swales’ six defining characteristics and answer this question: How does the group you chose exhibit the characteristics of a discourse community? Present your conclusions in a document showing that you understand the six characteristics of discourse communities and know how to apply

Read the CASE of Prison X – Leadership Intervention Strategy. (Pg 2)

Components to Include Your deliverable for Week 1 constitutes a case overview and an initial analysis of specific critical issues, needs, and challenges that may be affecting this organization and its culture.   Tasks: Read the CASE of Prison X – Leadership Intervention Strategy. (Pg 2)   Week 1: LIS – Initial Assessment ·     

1. Nanomaterials and nanotechnologies are very important for current and

1. Nanomaterials and nanotechnologies are very important for current and next generation technologies. For metallurgical technology, powder metallurgy, in which the metal powders are utilized, is an important branch of the metallurgy. Currently, the nanoparticles of some metals, such as gold and silver, are widely utilized in biological and chemical

Distribution Strategy – This is a group project I only

 Distribution Strategy –  This is a group project  I only need the distribution strategy   Product –  The company will develop a user-friendly application app that can integrate hotels under the Marriott umbrella to offer their products and services to a pool of customers.   Recommend a distribution plan for the

Models of the coaching process – a review and critique of coaching

Your paper will review the relevant published research on the topic, and apply concepts or frameworks from the literature to critically evaluate and gain insight on the topic. You should; • Critically assess the role of coaching in the modern workplace • Discuss a range of contemporary approaches to coaching

Research and thoroughly explain at least TWO major threats to

   Research and thoroughly explain at least TWO major threats to the organization, discuss why these threats are present, and what can be done to either remove or reduce them. Think about some of the examples you see every day as you drive around. For example, how many times do

Business Owner Interview

Small Business Interview (10% of the final grade). Each student will be required to conduct an interview with a small business owner of his/her choice. The Small Business Owner cannot be a family member and must be located in the US. Students will be required to identify the person including

You will prepare an analysis (7-8 pages of content) that describes the crisis, describes the organization or individual’s response to it, analyzes the

You will prepare an analysis (7-8 pages of content) that describes the crisis, describes the organization or individual’s response to it, analyzes the response using course concepts/theories, evaluates the response, and offers suggestions for how the organization could have done better where appropriate. Your paper MUST include at least. seven

TOPIC 5: Mobile App Planning and Design Assessment Description The

   TOPIC 5: Mobile App Planning and Design Assessment Description The purpose of this assignment is to execute key steps in the mobile app planning and design process and to explain how mobile technology and apps can be used to drive business results and create competitive advantage. Part 1 –

Review the Case Study document. Assume upper management of the organization is interested in understanding the impact its branding and competitive strategies have on consumer choice, as well as the Nursing Assignment Help

Review the Case Study document.  Assume upper management of the organization is interested in understanding the impact its branding and competitive strategies have on consumer choice, as well as the impact of the bargaining power of consumers in the health care market, especially on your products and services.  Prepare a

Attached Files: Writing a Position Paper.docx Writing a Position Paper.docx

Attached Files: Position Paper:  Write a 5-7 page position paper (excluding title page, abstract, references) addressing the implementation of blockchain within one of the following fields or a field of your choosing: Healthcare.  Corporate Finance/Digital Securities  Transactions/Banking Real Estate. Supply Chain/Logistics. Insurance. Formatting Requirements Select 10-12 professional/academic sources to discuss