# Summary – Part 1 Create a program that allows a student to c...

## Question

Summary – Part 1
Create a program that allows a student to complete a registration form and displays a completion message that includes the user's full name and a temporary password.
Summary – Part 2
Create a program that calculates a user's weekly gross and take-home pay.
Deliverables
• 2 source code Python files.
• A Word document containing both source code and the screen print of the program outputs.

Lab Steps
Part 1 – Registration Form

Sample Output:
Registration Form
First Name: Eric
Last Name: Idle
Birth Year: 1934
Welcome Eric Idle!

Specifications:
• The user’s full name consists of the user’s first name, a space, and the user’s last name.
• The temporary password consists of the user’s first name, an asterisk (*), and the user’s birth year.
• Assume the user will enter valid data.

first_name
last_name
birth_year

Part 2 – Pay Calculator
Sample Output:
Pay Check Calculator

Hours Worked: 35
Hourly Pay Rate: 14.50
Gross Pay: 507.5
Tax Rate: 18
Tax Amount: 91.35
Take Home Pay: 416.15

• The formula for calculating gross pay is:
o gross pay = hours worked * hourly rate
• The formula for calculating tax amount is:
o tax amount = gross pay * (tax rate / 100)
• The formula for calculating take home pay is:
o take home pay = gross pay - tax amount

• The tax rate should be 18%, but the program should store the tax rate in a variable so that you can easily change the tax rate later, just by changing the value that's stored in the variable.
• The program should accept decimal entries like 35.5 and 14.25.
• Assume the user will enter valid data.
• The program should round the results to a maximum of two decimal places.

hours
pay_rate gross_pay = round(hours * pay_rate, 2)
tax_rate = 18
tax_amount = round(gross_pay * (tax_rate / 100), 2)
take_home_pay = round(gross_pay - tax_amount, 2) gross_pay
tax_rate
tax_amount
take_home_pay

Specifications
• The user’s full name consists of the user’s first name, a space, and the user’s last name.
• The temporary password consists of the user’s first name, an asterisk (*), and the user’s birth year.
• Assume the user will enter valid data.
• The program should round the results to a maximum of two decimal place

## Solution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

from tkinter import *
root = Tk()
root.title('Registration form')
Label(root, text='First Name:').grid(row=0)
Label(root, text='Last Name:').grid(row=1)
Label(root, text='Birth Year:').grid(row=2)

first_name = StringVar()
last_name = StringVar()
birth_year = IntVar()

e1 = Entry(root, textvariable=first_name)
e2 = Entry(root, textvariable=last_name)
e3 = Entry(root, textvariable=birth_year)

lblWelcome = Label(root, text='')
lblReg = Label(root, text='')
lblPass = Label(root, text='')

def onclick():
name = "Welcome " + first_name.get() + " " + last_name.get() + "!"
lblWelcome.config(text=name)
reg = "Your Registration is complete."
lblReg.config(text=reg)

btn = Button(root, text="Submit", command=onclick)

e1.grid(row=0, column=1)
e2.grid(row=1, column=1)
e3.grid(row=2, column=1)
btn.grid(row=3, column=0, columnspan=2)
lblWelcome.grid(row=4, column=0, columnspan=2)
lblReg.grid(row=5, column=0, columnspan=2)
lblPass.grid(row=6, column=0, columnspan=2)
mainloop()...

By purchasing this solution you'll be able to access the following files:
Solution.zip.

\$22.50
for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

### Find A Tutor

View available Python Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.