Question
One acre of land is 43,560 square feet. Write a program that asks the user to enter the total square feet in a tract of
One acre of land is 43,560 square feet. Write a program that asks the user to enter the total square feet in a tract of land and calculates the number of acres in the tract.
Hint: Divide the amount entered by 43,560 to get the number of acres
# Author - your name date 2/13/2020 program name - gross pay.py
# This program calculates an employee's gross pay
# get the input data
employee = input("enter the employee's name: ")
hours_worked = int(input("enter employee's hours worked: "))
hourly_rate = float(input("enter employee's hourly rate: "))
# perform processing operations
gross_pay = hours_worked * hourly_rate
# format the output
gross_pay = format(gross_pay,'.2f')
# print the output
print()
print("The gross pay is $", gross_pay)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started