Wednesday, November 14, 2018

problem 5

Project predictor
In the three-field system the sequence of field use involved an autumn planting of grain (wheat, barley or rye) and a spring planting of peas, beans, oats or barley. The third was left fallow, in order to allow the soil of that field to regain its nutrients.

The 3 durations(4 months each) are, 
Duration 1: 1-4 (all inclusive) 
Duration 2: 5-8 (all inclusive) 
Duration 3: 9-12 (all inclusive) 

The 2 crops that were used are,  
Crop 1: Winter Wheat 
Crop 2: Beans 

The initial crops in three fields at month 1are, 
Field 1: Winter Wheat 
Field 2: Beans 
Field 3: Left Fallow 

Given the month number and field number, write a program to print the crop name. 

Input Format: 
The first input is an integer corresponds to month number. 
The second input is an integer corresponds to field number. 

Output Format: 
The output is the string. 

Sample Input 1: 
Sample Output 1: 
Winter Wheat 
  
Sample Input 2: 
Sample Output 2: 
Left Fallow 
  
Sample Input 3: 
Sample Output 3: 
Beans

No comments:

 DBMS class materials click here to join the class room  click here  https://www.youtube.com/channel/UC93Sqlk_tv9A9cFv-QjZFAQ