Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

8th Edition

013460153X, 978-0134601533

More Books

Students also viewed these Databases questions

Question

What is the environment we are trying to create?

Answered: 1 week ago