Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are hired to write a OOP program. Where you will develop a main program that will utilize a class that will determine the cost

You are hired to write a OOP program. Where you will develop a main program that will utilize a class that will determine the cost of fertilizer needed for a farmers field. There is a wild pig issue where many wild pigs will graze on the crops at night, this could be a problem when harvesting due to bacteria. The other issue is when there is a heavier than usual rain fall in the spring, since flooding can also be a issue to the cost of production since the field is in a flood plain. Especially since the estimations are determined by the square feet. To order fertilizer the farmer will need to enter the dimensions of the field into the computer. As well as the cost of fertilizer per square-feet. Given the natural water shed of his fields, there should be no runoffs of the fertilizer. Once the farmer knows the cost of the fertilizer per field identified and entered, he should know the cost and make an order on the phone. With wind conditions he may have to call several times due to the remote location of his business, but it is critical for the farmer to know the cost of each order prior to tilling. There may be a regulation limiting the amount of certain fertilizers he can use, he will need to determine this by accessing the government website. Fuel costs are not asked for in this application.
Task.
You are hired to write a OOP program. Where you will develop a main program that will utilize a class that will determine the cost of fertilizer needed for a farmers field. There is a wild pig issue where many wild pigs will graze on the crops at night, this could be a problem when harvesting due to bacteria. The other issue is when there is a heavier than usual rain fall in the spring, since flooding can also be a issue to the cost of production since the field is in a flood plain. Especially since the estimations are determined by the square feet. To order fertilizer the farmer will need to enter the dimensions of the field into the computer. As well as the cost of fertilizer per square-feet. Given the natural water shed of his fields, there should be no runoffs of the fertilizer. Once the farmer knows the cost of the fertilizer per field identified and entered, he should know the cost and make an order on the phone. With wind conditions he may have to call several times due to the remote location of his business, but it is critical for the farmer to know the cost of each order prior to tilling. There may be a regulation limiting the amount of certain fertilizers he can use, he will need to determine this by accessing the government website. Fuel costs are not asked for in this application.
Task.
1) Write a FarmerFieldDemo.java program that will access the
2) FarmerField.jave class and give the farmer the cost of fertilizer to cover his field.
(farmerField.java class created in classroom lecture)

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

Hands-On Database

Authors: Steve Conger

2nd Edition

0133024415, 978-0133024418

More Books

Students also viewed these Databases questions

Question

What is the growth rate of GDP per capita?

Answered: 1 week ago