程序代写代做代考 assembly Exercise 2-13 Planting Grapevines

Exercise 2-13 Planting Grapevines

# This program calculates the number of grapevines that
# can be planted in a vineyard row.

print(‘Enter the length of the row, in feet: ‘, end=”)
r = float(input())

print(‘Enter the amount of space, in feet, used by an end-post assembly: ‘,
end=”)
e = float(input())

print(‘Enter the distance, in feet, between each vine: ‘, end=”)
s = float(input())

# Calculate the number of vines.
v = (r – 2 * e) / s

print(‘You have enough space for’, v, ‘vines.’)

Leave a Reply

Your email address will not be published. Required fields are marked *