Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peteprattis/vegetable-traders-check-program
This is a practice program is Visual Basic that simulates the procedure of checking the trade of vegetable buys and sales.
https://github.com/peteprattis/vegetable-traders-check-program
computer-science eof program visual-basic
Last synced: about 3 hours ago
JSON representation
This is a practice program is Visual Basic that simulates the procedure of checking the trade of vegetable buys and sales.
- Host: GitHub
- URL: https://github.com/peteprattis/vegetable-traders-check-program
- Owner: PetePrattis
- License: mit
- Created: 2020-09-24T15:58:19.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-24T16:16:02.000Z (about 4 years ago)
- Last Synced: 2023-09-14T10:17:32.217Z (about 1 year ago)
- Topics: computer-science, eof, program, visual-basic
- Language: Visual Basic .NET
- Homepage:
- Size: 3.91 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 checking the trade of vegetable buys and sales.**
>#### Description of Exercise
>
>A region controlled the profit margin of traders of vegetable products for three species, tomatoes, eggplant, peppers. In a file named Check.txt recorded the details of the merchants. Each file entry contains the following information:
>>* Last name of trader
>>* Kind of product (1 for tomato, 2 for eggplant, 3 for pepper)
>>* Purchase price of product per kilo
>>* Sell price per kilo
>
> Write a program that reads the file and for each record of the file, calculate the percentage of profit per kilo for the trader:
>>* If the profit percentage is greater than 30%, write in a file named Ιnfringements.txt the data just read and the profit percentage.
>
>After the end of the procedure, the program displays on the screen:
>>* The number of traders with a profit percentage greater than 50%
>>* The average selling price per kilo of tomato
>>* The maximum purchase price per kilo of pepper
>