<jupyter_start><jupyter_text>inputs: hourly rate, hours worked, tax rateoutputs: gross pay and net pay1. input hourly rate 2. input hours worked3. input tax rate4. gross pay = hourly rate x hours worked 5. tax = tax rate x gross pay6. net pay = gross pay - tax7. print gross pay, tax, net pay<jupyter_code>hourly_rate = float(input("Enter hourly rate: "))
hours_worked = int(input("Enter hours worked: "))
tax_rate = float(input("Enter tax rate: "))
gross_pay = hourly_rate * hours_worked
tax = tax_rate * gross_pay
net_pay = gross_pay - tax
print("%-10s.... $ %.2f "  % ( "Gross Pay", gross_pay))
print("Tax.......... $ %.2f "  % tax)
print("Net Pay...... $ %.2f "  % net_pay)

print("%-10s.... $ %7.2f "  % ("Gross Pay.", - gross_pay))
print("%-10s.... $ %7.2f "  % ("Tax.......", tax))
print("%-10s.... $ %7.2f "  % ("Net Pay...", net_pay))
print("%s]")<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.20654627539503387, 'fraction_numerical': 0.02708803611738149, 'mean_word_length': 3.435, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '425653', 'license': 'MIT', 'n_tokens_mistral': 335, 'n_tokens_neox': 319, 'n_words': 94, 'path': 'content/lessons/03/Watch-Me-Code/Pay-Rate-Example.ipynb', 'repo_name': 'IST256-classroom/2019-Spring-Learn-Python-mafudge', 'size': '886'}