Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peteprattis/payment-of-farm-subsidies-program
This is a practice program is Visual Basic that simulates the procedure of paying farm subsidies.
https://github.com/peteprattis/payment-of-farm-subsidies-program
computer-science eof program visual-basic
Last synced: about 7 hours ago
JSON representation
This is a practice program is Visual Basic that simulates the procedure of paying farm subsidies.
- Host: GitHub
- URL: https://github.com/peteprattis/payment-of-farm-subsidies-program
- Owner: PetePrattis
- License: mit
- Created: 2020-09-26T09:58:12.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-26T10:24:33.000Z (about 4 years ago)
- Last Synced: 2023-09-14T10:17:29.794Z (about 1 year ago)
- Topics: computer-science, eof, program, visual-basic
- Language: Visual Basic .NET
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A Visual Basic Program
**This is a practice program is Visual Basic that simulates the procedure of paying farm subsidies.**
>#### Description of Exercise
>
>Write a program that:
> 1. Reads the following data for the Regions of the country for the payment of the subsidy:
>>* Region Code (integers with values 1-13)
>>* Product name (alphanumeric)
>>* Cultivated farm acres (real number)
>>* Numbers of farms (real number)
>
> 2. For each region and product to calculate the average size of farms and accordingly to calculate the subsidy that will be given. The subsidy is calculated in stages based on the average size of the farm and according to the table:
>>
>>Average farm size | Compensation per acre
>>------------ | -------------
>>Up to 49 | 120€
>>50 to 99 | 100€
>>More than 100 | 50€
>>
>
> 3. Write in a file, which has the name RESULTS.txt the region code, the name of the product, the cultivated acres and the total compensation that must be given.
>
>The procedure is repeated until the value 0 is given as the region code. After the end of the data entry, the program calculates and displays:
>
> 4. The total subsidy that must be given for the product "WHEAT" and the number of farms that will receive it.
>
> 5. The region code to which the largest subsidy was given overall.
>