Question

PYTHON PROGRAMMING LANGUAGE (NEEDED ASAP)

Using a structured approach to writing the program: This section will guide you in starting the program in a methodical way.Create functions with the following names: readEmployee Data print Payroll findByAmt findEmployeeByName saveData processCanceExpected Behavior of the Program This section describes and illustrates the things your program should do. Now that you knowSuccess If the file has been successfully read, display the message box and change the state of the Payroll, Name, and AmountEven if the file does exist, you may still have problems processing the data. For example, if the hours worked or the hourlyWhen the user clicks Find Employee be Name, display a dialog box that will allow the user to enter a name; finding the rightThe Find Employee by Amount button is related to the Highest and Lowest radio buttons. When the user clicks Find Employee byTotal payroll = 2891.9 Weiss worked 3 hours at $ 14.80 per hour, and earned $ 562.40 Highest-paid employee: When the user cli

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Only part of the program is able to be completed

from tkinter import *
from tkinter import messagebox
  
root = Tk()

def write_slogan():
print("This represents find employee by name")

  
root.title('Employee Payroll')
frame = Frame(root)
frame.pack()
bottomframe = Frame(root)
bottomframe.pack( side = BOTTOM )
redbutton = Button(frame, text = 'Find employee by name', fg ='red',command=write_slogan)
redbutton.pack( side = LEFT)
greenbutton = Button(frame, text = 'Read File', fg='blue')
greenbutton.pack( side = LEFT )
bluebutton = Button(frame, text ='Show Payroll', fg ='blue',state=DISABLED)
bluebutton.pack( side = LEFT )
bluebutton = Button(frame, text ='Find employee by amount', fg ='blue')
bluebutton.pack( side = LEFT )
bluebutton = Button(frame, text ='Write Output to file', fg ='blue',state=DISABLED)
bluebutton.pack( side = LEFT )
bluebutton = Button(frame, text ='Cancel', fg ='blue')
bluebutton.pack( side = LEFT )
blackbutton = Button(bottomframe, text ='stop', fg ='black')
blackbutton.pack( side = BOTTOM)
v = IntVar()
Radiobutton(root, text='Highest', variable=v, value=1).pack(anchor=W)
Radiobutton(root, text='Lowest', variable=v, value=2).pack(anchor=W)
def onclick():
pass
text = Text(root)
text.insert(INSERT, "")
text.insert(END, "")
text.pack()

text.tag_add("here", "1.0", "1.4")
text.tag_add("start", "1.8", "1.13")
text.tag_config("here", background="yellow", foreground="blue")
text.tag_config("start", background="black", foreground="green")
messagebox.showerror("Error", "Error reading file")
messagebox.showerror("Error", "Bad data in file")
root.mainloop()   

Add a comment
Know the answer?
Add Answer to:
PYTHON PROGRAMMING LANGUAGE (NEEDED ASAP) Using a structured approach to writing the program: This section will...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • write this program in Java Problem 5. (30 Points) Write a program that reads employee work...

    write this program in Java Problem 5. (30 Points) Write a program that reads employee work data from a text file employee.txt), and then calculates payroll information based on this file and store them into a new text file called payroll.txt. The employee. txt file contains one line of text for each employee. Each line consists of the following data (delimited by tabs): employee's name, employee's hourly wage rate, hours worked Monday, hours worked Tuesday, hours worked Wednesday, hours worked...

  • Java Programming Reading from a Text File Write a Java program that will use an object...

    Java Programming Reading from a Text File Write a Java program that will use an object of the Scanner class to read employee payroll data from a text file The Text file payroll.dat has the following: 100 Washington Marx Jung Darwin George 40 200 300 400 Kar Car Charles 50 22.532 15 30 The order of the data and its types stored in the file are as follows: Data EmployeelD Last name FirstName HoursWorked double HourlyRate Data Tvpe String String...

  • Requesting help with the following C Program: DESIGN and IMPLEMENT a menu driven program that uses...

    Requesting help with the following C Program: DESIGN and IMPLEMENT a menu driven program that uses the following menu and can perform all menu items: Enter a payroll record for one person Display all paycheck stubs Display total gross payroll from all pay records. Quit program The program will reuse the DATE struct from the previous assignment.  You should also copy in the functions relating to a DATE. The program will create a PAYRECORD struct with the following fields: typedef struct...

  • in csis 152 style python programming language Read the initial employee information from a text file...

    in csis 152 style python programming language Read the initial employee information from a text file and store the employee information into a list of sublists called empRoster. Each sublist should contain [empID, name, payrate,hours] Here's an example of how empRoster will look: 111, "Sally Smith", 10, 401, 1222, "Bob Brown", 10, 42]1 The text file will be structured as shown below, where each line contains the employee id, employee name, payrate and hours. Each entry on the line is...

  • (C++ programming) Need help with homework. Write a program that can be used to gather statistical...

    (C++ programming) Need help with homework. Write a program that can be used to gather statistical data about the number of hours per week college students play video games. The program should perform the following steps: 1). Read data from the input file into a dynamically allocated array. The first number in the input file, n, represents the number of students that were surveyed. First read this number then use it to dynamically allocate an array of n integers. On...

  • C Language Programming. Using the program below - When executing on the command line only this...

    C Language Programming. Using the program below - When executing on the command line only this program name, the program will accept keyboard input and display such until the user does control+break to exit the program. The new code should within only this case situation “if (argc == 1){ /* no args; copy standard input */” Replace line #20 “filecopy(stdin, stdout);” with new code. Open read a text file “7NoInputFileResponse.txt” that contains a message “There were no arguments on the...

  • Topics: list, file input/output (Python) You will write a program that allows the user to read...

    Topics: list, file input/output (Python) You will write a program that allows the user to read grade data from a text file, view computed statistical values based on the data, and to save the computed statistics to a text file. You will use a list to store the data read in, and for computing the statistics. You must use functions. The data: The user has the option to load a data file. The data consists of integer values representing student...

  • C++ and Using Microsoft Visual Studio. Write 2 programs: One program will use a structure to...

    C++ and Using Microsoft Visual Studio. Write 2 programs: One program will use a structure to store the following data on a company division: Division Name (East, West, North, and South) Quarter (1, 2, 3, or 4) Quarterly Sales The user should be asked for the four quarters' sales figures for the East, West, North, and South divisions. The data for each quarter for each division should be written to a file. The second program will read the data written...

  • employees.txt Instructions You will be using Eclipse for all assignments in this course. You can download...

    employees.txt Instructions You will be using Eclipse for all assignments in this course. You can download Eclipse from the Virtual Desktop. Please write a Java program that follows the instructions below. There are two files to download. AvaCam Inc. is interested in the electronic computation of their payroll. They have reached out, and you have agreed to write a program to help them. They have sent you the file employees.txt (right-click to download the file). Store this file in the...

  • using c++ output format should look this but use employee id,hours worked and pay rate and...

    using c++ output format should look this but use employee id,hours worked and pay rate and the total should be calculated. for example employee id:1234 hours work:29.3 pay rate:16.25 administrative, office and field should be outputted as well too. Using a structure, and creating three structure variables, write a program that will calculate the total pay for thirty (30) employees. (Ten for each structured variable.) Sort the list of employees by the employee ID in ascending order and display their...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
Active Questions
ADVERTISEMENT