Giter Site home page Giter Site logo

peteprattis / payment-of-farm-subsidies-program Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 5 KB

This is a practice program is Visual Basic that simulates the procedure of paying farm subsidies.

License: MIT License

Visual Basic .NET 100.00%
visual-basic eof program computer-science

payment-of-farm-subsidies-program's Introduction

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)
  1. 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€
  1. 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:

  1. The total subsidy that must be given for the product "WHEAT" and the number of farms that will receive it.

  2. The region code to which the largest subsidy was given overall.

payment-of-farm-subsidies-program's People

Contributors

peteprattis avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.