Concept explainers
Employee Management System
This exercise assumes you have created the Employee class for
■ Look up an employee in the dictionary
■ Add a new employee to the dictionary
■ Change an existing employee's name, department, and job title in the dictionary
■ Delete an employee from the dictionary
■ Quit the program
When the program ends, it should pickle the dictionary and save it to a file. Each time the program starts, it should try to load the pickled dictionary from the file. If the file does not exist, the program should start with an empty dictionary.
Want to see the full answer?
Check out a sample textbook solutionChapter 10 Solutions
Starting Out with Python (4th Edition)
Additional Engineering Textbook Solutions
Electric Circuits. (11th Edition)
Introduction To Programming Using Visual Basic (11th Edition)
Modern Database Management
INTERNATIONAL EDITION---Engineering Mechanics: Statics, 14th edition (SI unit)
Degarmo's Materials And Processes In Manufacturing
- Pseudocode for the student grade calculator program, please Create a program to enter grades and calculate averages and letter grades. Need a class which will contain: Student Name Student Id Student Grades (an array of 3 grades) A constructor that clears the student data (use -1 for unset grades) Get functions for items a, b, and c, average, and letter grade Set functions for items a, n, and c Note that the get and set functions for Student grades need an argument for the grade index. Need another class which will contain: An Array of Students (1 above) A count of number of students in use You need to create a menu interface that allows you to: Add new students Enter test grades Display all the students with their names, ids, test grades, average, and letter grade Exit the program Add comments and use proper indentation. Nice Features: I would like that system to accept a student with no grades, then later add one or more grades, and when all grades are entered, calculate the…arrow_forward# Create Student class with attributes name,department,year and GPA # Student class has also static departments list with elements ["SENG","CENG","IE","EEE","EE"] # Class also has id attribute(STRING)starts from 20400007000 that increments automatically. # Define str method of Student to print all attribute information # Program should not create Student object if department is not in departments and GPA is not between 0.00 , 4.00 # Use the given code to handle test and handle errors # Hint: Define a Method to validate the attribute values before creating objectS. while True: create = bool(int(input("1.Input 0.Exit: "))) if not create: break else: name = input("Enter name of student: ") department = input("Enter department of Student: ") year = input("Enter year of student: ") GPA = int(input("Enter GPA of Student: ")) s = Student(name, department, year, GPA) print(s) SAMPLE OUTPUTS 1.Input 0.Exit: 1 Enter name of student: Ali Kaçar Enter department of Student: IE Enter year of…arrow_forwardPython Programming Assignment: Create a dictionary that takes a basketball team's information (that includes team's name and points) as parameter, creates a teams_dict and returns it. Also, create a parameter for write_file parameter that opens current results text file in write mode and writes the dictionary information to file as per format and closes the file.arrow_forward
- CLASS TEST 1-Word File Home Insert Design Layout References Mailings Review View Grammarly O Tell me uhat you want to do 2 Share E H The figure above depicts how data is stored in a database. By indexing the nodes in the database from 0 to the highest number: a) Generate the node data array b) Generate the left pointer array c) Generate the right pointer arrayarrow_forwardEmployee Management System Write a python class named Employee that holds the following data about an employee in attributes: name, ID number, department, and job title. Once you have written the class, write a PYTHON program that creates three Employee objects to hold the following data: Name ID Number Department Job Title Susan Meyers 47899 Accounting Vice President Mark Jones 39119 IT Programmer Joy Rogers 81774 Manufacturing Engineer The program should store this data in the three objects, then display the data for each employee on the screen.Using the Employee class, create a program that stores Employee objects in a dictionary. Use the employee ID number as the key. The program should present a menu that lets the user perform the following actions: • Look up an employee in the dictionary• Add a new employee to the dictionary• Change an existing employee’s name, department, and job title in the dictionary• Delete an employee from the dictionary• Print all…arrow_forwardInterval Selection: Please help me with this TypeErrorarrow_forward
- When an object is instantiated, the PVM must find space for the object on the ____. Question 16 options: unused memory activation record object heap call stackarrow_forwardC# According to the following statement, __.Random rn = new Random(); Question 1 options: It declares a variable named rn that can be used to reference an object of the Random type. The new operator creates an object in memory and returns a reference to that object. The = operator assigns the reference that was returned from the new operator to the rn object. All of the above.arrow_forwardASSIGNMENT: Student Data Write a program that uses two structures Name and Student to store the following information for multiple students: 1. Create a NAME structure that consists of • First Name, • Middle Initial, and • Last Name. 2. Create a STUDENT structure that contains student information (Include the NAME structure within the Student information structure) o Name o ID o email • SSN • Program (an enum type containing programs such as CSCI, DBMS, INFM, SDEV)arrow_forward
- A student record has the following:Student nameStudent surnameStudent NumberFinal markFGrade comment Create a StudentRecord class, complete with accessors and mutators (get and set methods) for theinstant variables as well as the toString method for formatting the object.The StudentRecord class must have an abstract method called calculatefinalMarkAn IT student has Test1, Test2 and Test3. The IT student's final mark is calculated as (Test1*0.2 +Test2*0.3 + Test3*0.5). The subminimum for a pass is 40% on Test3. ITStudentRecordAn Accounting student has Test1 and Test2. The Accounting student's final mark is calculated as(Tes1*0.4 + Test2*0.6). The subminimum for a pass is 40% on Test2. AccountingStudentRecordBoth the sub classes must have at least two constructors, one with null argument and one with allpertinent instance variables.PS. The final mark and the grade comment cannot be instance variables.The grade comment can be a pass with distinction if the final mark is 80% or greater.…arrow_forwardusing accessarrow_forwardCreate a simple program for a quiz Software Requirements: Latest version of NetBeans IDE Java Development Kit (JDK) 8 Procedure: Create a folder named LastName_FirstName (ex. Dahan yoon) in your local Create a new project named LabExer5B. Set the project location to your own The program shall: contain an array of 10 multiple choice questions with three (3) choices each and require the user to choose among A, B, or C; Note: Cases are ignored. Lowercase letters are acceptable (a, b, c). Create a try-catch structure to handle three (3) exceptions. These are when the user inputs the following: an invalid letter (not A, B, or C) a number or any special character blank (no answer) Prompt the user that he can answer again if any of the three (3) exceptions is Display the score.arrow_forward
- EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT