A tomato farmer residing in Barstow, California is considering a new crop. The total farm size is seven acres; approximately one acre will be used for planting the new crop. Various formulas and assumptions need to be considered to help the farmer plan for the new crop. For example, the following formula can be used to calculate the number of plants that will fit in a row, including the watering spigot that needs to be attached to one end of the row, and the space needed between plants. TPR = (RL – EPS) / S The terms in the formula are: TPR is the total plants per row. RL is the length of the row in feet. EPS is the amount of space, in feet, used by an end-point watering spigot. S is the space between plants, in feet. In addition, knowing the square feet of an acre of land (traditionally defined as one chain by one furlong (66 by 660 feet)), the following formula will allow the farmer to calculate the estimated area of remaining farm land. RFL = TFL – PFL The terms in the formula are: RFL is the remaining farm land to be planted, in square feet. TFL is the farmer’s total farm size, in square feet. PFL is the area, in square feet, of the planned farmland to use. Requirements and Assumptions The goal is to write a program that makes calculations for the farmer. The program should consider:  A user defined length, in feet, of the planting row.  A user defined length, in feet, needed for an end-point watering spigot.  A user defined length, in feet, needed between each tomato plant in the row.  The standard length, in feet, between each row is assumed to be a named constant equal to 5 feet.  The dimensions of area to be planted; again, assume measurements of one acre is 66 feet by 660 feet. o However, given that the user will define row length, the programmer will need to calculate how many rows will approximately be equal to one acre. Assume a named constant can be defined for the width or the length of an acre. Thus, once the input data has been entered, the program should calculate the number of tomato plants that will fit in each row, total number of rows needed, total number of plants to be planted, and the total number of spigot connections needed. The program should also subtract the area needed for the plants (approximately one acre) from the plot of land (assume exactly seven acres). Last, display the results of each calculation.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Task #1 Application structure and outline
1. Create an algorithm for the program.
Task #2 Write a Python Program
1. Implement the algorithm. That is, convert the algorithm to Python source code following standard
coding style (including comments) as noted in the text and the style guide posted in Blackboard.
Task #3 Validate the Program
1. Run and test the program, i.e., fix syntax, logic, and runtime errors. . Create a validation table to test
the code implemented in Task #2 (review Lab 2).
Task #4 Document and Submit
1. Create a Word document. Input the algorithm created in Task #1. Copy and paste the Python source
code IDE link created for the application in Task #2 into the document. Input the validation table
created in Task #3 into the document. Input screenshots of the program’s output.

 

A tomato farmer residing in Barstow, California is considering a new crop. The total farm size is seven acres;
approximately one acre will be used for planting the new crop. Various formulas and assumptions need to be
considered to help the farmer plan for the new crop. For example, the following formula can be used to
calculate the number of plants that will fit in a row, including the watering spigot that needs to be attached to
one end of the row, and the space needed between plants.
TPR = (RL – EPS) / S
The terms in the formula are:
TPR is the total plants per row.
RL is the length of the row in feet.
EPS is the amount of space, in feet, used by an end-point watering spigot.
S is the space between plants, in feet.
In addition, knowing the square feet of an acre of land (traditionally defined as one
chain by one furlong (66 by 660 feet)), the following formula will allow the farmer to
calculate the estimated area of remaining farm land.
RFL = TFL – PFL
The terms in the formula are:
RFL is the remaining farm land to be planted, in square feet.
TFL is the farmer’s total farm size, in square feet.
PFL is the area, in square feet, of the planned farmland to use.
Requirements and Assumptions
The goal is to write a program that makes calculations for the farmer. The program should consider:
 A user defined length, in feet, of the planting row.
 A user defined length, in feet, needed for an end-point watering spigot.
 A user defined length, in feet, needed between each tomato plant in the row.
 The standard length, in feet, between each row is assumed to be a named constant equal to 5 feet.
 The dimensions of area to be planted; again, assume measurements of one acre is 66 feet by 660 feet.
o However, given that the user will define row length, the programmer will need to calculate how
many rows will approximately be equal to one acre. Assume a named constant can be defined
for the width or the length of an acre.
Thus, once the input data has been entered, the program should calculate the number of tomato plants that will
fit in each row, total number of rows needed, total number of plants to be planted, and the total number of spigot
connections needed. The program should also subtract the area needed for the plants (approximately one acre)
from the plot of land (assume exactly seven acres). Last, display the results of each calculation.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Running Time of Application
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education