Question: 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 squarefeet. 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 squarefeet. 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.
Write a FarmerFieldDemo.java program that will access the
FarmerField.jave class and give the farmer the cost of fertilizer to cover his field.
farmerFieldjava class created in classroom lecture
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
