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
Starting Out with C++: Early Objects (9th Edition)
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
Objects First with Java: A Practical Introduction Using BlueJ (6th Edition)
Computer Systems: A Programmer's Perspective (3rd Edition)
Problem Solving with C++ (10th Edition)
Starting Out with Java: From Control Structures through Data Structures (4th Edition) (What's New in Computer Science)
- Python 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@Build ER diagramarrow_forwardBackground Information This assignment tests your understanding of and ability to apply the programming concepts we have covered in the unit so far, including the usage of variables, input and output, data types, selection, iteration, functions and data structures. Above all else, it tests your ability to design and then implement a solution to a problem using these concepts. Assignment Overview You are required to design and implement a "Word Game" program in which the user must identify a randomly selected "password" from a list of 8 words. The 8 words are selected at random from the list of 100 words in the starter file (word_game.py) provided to you with this assignment brief. Please use the starter file as the basis of your assignment code. The user has 4 attempts in which to guess the password. Whenever they guess incorrectly, they are told how many of the letters are the same between the word they guessed and the password. For example, if the password is "COMEDY" and…arrow_forward
- c# questionWrite a gui application so when a new non-numerical number isentered for either the student ID number or cell number, the application should display amessage to the user for a correct format, then be able to update the listbox.arrow_forwardA 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_forwardme words Insert Chapter 8 example.docx-Word View Review Design Tell me what you want to do... Layout Mailings References Class A: Int data1, data2 A(int d1,int d2)// initialize data1, data2 Int Add() // adds two numbers: data1, data2 0 Class B: Data3 Int AddFromB(int d1,int d2, int d3)// adds three numbers { Super(d1, d2) Int s=Add() Int sb=s+d3} Suppose you have a class called A which have two integer data(data1, data2) and a method Add() which returns sammation of data1and data2. Another class B has an integer data3 and a method AddFromB() which adds data3 with the returned result of Add(). Now implement the above scenario and show the summation of three integer numbers. Ix Sign inarrow_forward
- Assignment Submission Instructions:This is an individual assignment – no group submissions are allowed. Submit a script file that contains the SELECT statements by assigned date. The outline of the script file lists as follows:/* ******************************************************************************** * Name: YourNameGoesHere * * Class: CST 235 * * Section: * * Date: * * I have not received or given help on this assignment: YourName * ***********************************************************************************/USE RetailDB;####### Tasks: Write SQL Queries ######### -- Task 1 (Customer Information):-- List your SELECT statement below. Make sure the SQL script file can be run successfully in MySQL and show the outcome of the code on MySQLarrow_forwardBasic Computer Programming ActivityLanguage: CShow the code and how it works thanksarrow_forwardExercise: Least Dictionary Value Description In this exercise you will find the value in a dictionary with the least value. Least means that the value is less than or equal to all other values in the dictionary. Remember that the 2 Assistant Object inspectorarrow_forward
- Simple login system PYTHON Create a static dictionary with a number of users and with the following values: First name Last name Email address Password Ask the user for: 5. Email address 6. Password Loop (for()) through the dictionary and if (if()) the user is found print the following: 7. Hello, first name last name you have successfully logged in 8. Notify the user if the password and email address are wrong 9. Additional challenge: if you want the program to keep asking for a username and password when the combination is wrong, you will need a while() loop.arrow_forwardObject oriented programming Intellijarrow_forwardScores Class Write a class named Scores which should have the following attribute: • _scores (a list to hold test scores, 0 - 100. Initially empty. ) The Scores class should have an _init__ method that creates the _scores attribute. It should also have the following methods: • add_score: this method adds a score to the __scores list. It accepts a single score as it's' only argument. • get_average: this method accepts no arguments. If _scores is empty, this method returns -1. Otherwise, it returns the average of all scores in _scores. • get_high_score: this method accepts no arguments. if scores is empty, this method returns -1. Otherwise, it returns the highest score in __scores. • get_low_score: this method accepts no arguments. if scores is empty, this method returns -1. Otherwise, it returns the lowest score in scores. • _str_: This method returns a string similar to the following (assuming the _scores contains 89, 77, 93): Once you have written the class, write a program that…arrow_forward
- EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTProgramming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
- EBK JAVA PROGRAMMINGComputer ScienceISBN:9781305480537Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTSystems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning