from difflib import
SequenceMatcher
#SequenceMatcher used to find the ratio of similarity
gList=[]
def input_values():
global gList
print('Enter Employee Name:', end=' ')
employeeName = input()
print('Enter Employee SSN:', end=' ')
employeeSSN = input()
print('Enter Employee Phone Number (ex.
(xxx)xxx-xxxx)', end=' ')
employeePhone = input()
print('Enter Employee Email:', end=' ')
employeeEmail = input()
print('Enter Employee Salary', end=' ')
employeeSalary =
float(input())
employeeList=[employeeName,employeeSSN,employeePhone,employeeEmail,employeeSalary]
gList.append(employeeList)
print('\n')
print('\n')
def show_values(sList):
for emp in sList:
print(emp[0].center(60,'-'))
print('\n')
print('SSN:',emp[1])
print('\n')
print('Phone:',emp[2])
print('\n')
print('Email:',emp[3])
print('\n')
print('Salary: $',emp[4])
def search():
global glist
sList=[]
print('SEARCH'.center(60,'-'))
print('Enter Employee SSN:', end=' ')
sEmployeeSSN = input()
for emp in gList:
if(SequenceMatcher(None,emp[1],sEmployeeSSN).ratio()>0.6):
#this ratio shows the similarity ratio, One can change as
required
sList.append(emp)
show_values(sList)
def edit():
global glist
print('EDIT'.center(60,'-'))
print('Enter Employee SSN:', end=' ')
sEmployeeSSN = input()
for emp in gList:
if(emp[1]==sEmployeeSSN):
print('Enter Employee Name:', end=' ')
employeeName = input()
employeeSSN = emp[1]
print('Enter Employee Phone Number (ex.
(xxx)xxx-xxxx)', end=' ')
employeePhone = input()
print('Enter Employee Email:', end=' ')
employeeEmail = input()
print('Enter Employee Salary', end=' ')
employeeSalary =
float(input())
gList.remove(emp)
employeeList=[employeeName,employeeSSN,employeePhone,employeeEmail,employeeSalary]
gList.append(employeeList)
break
input_values()
input_values()
input_values()
input_values()
search()
edit()
show_values(gList)
I need this script to SEARCH employee by SSN and EDIT employee information in the format...
In header file (.h) and c++ file format (.cpp). A local company has asked you to write a program which creates an Employee class, a vector of Employee class objects, and fills the objects with employee data, creating a "database" of employee information. The program allows the user to repeatedly search for an employee in the vector by entering the employee's ID number and if found, display the employee's data. The Employee_C class should have the following data and in...
I need to write a Java program. Declare and initialize an ArrayList of type Employee. In a while loop, keep initializing objects of type Employee, storing them in the array, and allow the user to enter ID, salary, and leaveDays of the each employee one by one and in one line. Once the user entered a -1, stop initializing new employees, and print "You entered [actual length of array] employees. Thank you!" Create a FOR loop that goes through every...
In C++ Please please help.. Assignment 5 - Payroll Version 1.0 In this assignment you must create and use a struct to hold the general employee information for one employee. Ideally, you should use an array of structs to hold the employee information for all employees. If you choose to declare a separate struct for each employee, I will not deduct any points. However, I strongly recommend that you use an array of structs. Be sure to read through Chapter...
User Profiles Write a program that reads in a series of customer information -- including name, gender, phone, email and password -- from a file and stores the information in an ArrayList of User objects. Once the information has been stored, the program should welcome a user and prompt him or her for an email and password The program should then use a linearSearch method to determine whether the user whose name and password entered match those of any of...
Programming Project 3 See Dropbox for due date Project Outcomes: Develop a Java program that uses: Exception handling File Processing(text) Regular Expressions Prep Readings: Absolute Java, chapters 1 - 9 and Regular Expression in Java Project Overview: Create a Java program that allows a user to pick a cell phone and cell phone package and shows the cost. Inthis program the design is left up to the programmer however good object oriented design is required. Project Requirements Develop a text...
For my computer class I have to create a program that deals with
making and searching tweets. I am done with the program but keep
getting the error below when I try the first option in the shell.
Can someone please explain this error and show me how to fix it in
my code below? Thanks!
twitter.py - C:/Users/Owner/AppData/Local/Programs/Python/Python38/twitter.py (3.8.3) File Edit Format Run Options Window Help import pickle as pk from Tweet import Tweet import os def show menu():...
Chapter 8
Python Case study Baseball Team Manager
For this case study,
you’ll use the programming skills that you learn in Murach’s
Python Programming to develop a program that helps a
person manage a baseball team. This program stores the data for
each player on the team, and it also lets the manager set a
starting lineup for each game. After you read chapter 2, you can
develop a simple program that calculates the batting average for a
player. Then,...
i need help with this scripting assignment in power shell thanks
Lab 7: PowerShell Search and Report Search Report host path date Execution time nnn Directories n, nnn, nnn Files nnnnnnn Sym links nnnnnnn Old files nnnnnnn Large files nnnn, nnn Graphics files nnnnnnn Executable files nnnnnnn Temporary files n, nnn, nnn TotalFileSize nnnn, nnn Introduction Lab 7 is nearly identical to Lab 2, except it is written in PowerShell, uses no UNIX/Linux tools to do its work, creates no...
Identify and list all the User defined Functions to be used in the system #include <stdio.h> ///for input output functions like printf, scanf #include <stdlib.h> #include <conio.h> #include <windows.h> ///for windows related functions (not important) #include <string.h> ///string operations /** List of Global Variable */ COORD coord = {0,0}; /// top-left corner of window /** function : gotoxy @param input: x and y coordinates @param output: moves the cursor in specified position of console */ void gotoxy(int x,int y) {...
Please try to write the code with Project 1,2 and 3 in
mind. And use java language, thank you very much.
Create an Edit Menu in your GUI
Add a second menu to the GUI called Edit which will have one
menu item called Search. Clicking on search should prompt the user
using a JOptionPane input dialog to enter a car make. The GUI
should then display only cars of that make. You will need to write
a second menu...