Jump to content
Mahalo_22

Starting Python question on where to begin...

Recommended Posts

Write a Python program that prompts the user for the length and width of a rectangular field (in feet, allowing a fractional part), then calculates and prints the area of the field in acres.  Area = length times width, there are 43,560 square feet in an acre. 

Share this post


Link to post
Share on other sites
6 hours ago, Mahalo_22 said:

Write a Python program that prompts the user for the length and width of a rectangular field (in feet, allowing a fractional part), then calculates and prints the area of the field in acres.  Area = length times width, there are 43,560 square feet in an acre. 

!

Moderator Note

We are not here to do your homework for you. If you have specific problems with the task then people may help you. 

 

Share this post


Link to post
Share on other sites
On 10/6/2019 at 11:15 PM, Mahalo_22 said:

Write a Python program that prompts the user for the length and width of a rectangular field (in feet, allowing a fractional part), then calculates and prints the area of the field in acres.  Area = length times width, there are 43,560 square feet in an acre. 

You'll need to define a function; do you know how?
You'll need to take an input from the user; Do you know how?
You'll need to make sure the data type of the input is a certain type; do you know what type that is and how to check that the input is that type?
Then you'll need to perform the calculation and print the result; Do you know how?

Give it a shot, and if you can't figure out how to do any of the above steps, let us know. We won't do your homework for you, but we'll help you figure it out.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.