Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/redragonx/country_program-rust
This program does some data operations on a input file.
https://github.com/redragonx/country_program-rust
Last synced: 13 days ago
JSON representation
This program does some data operations on a input file.
- Host: GitHub
- URL: https://github.com/redragonx/country_program-rust
- Owner: redragonx
- Created: 2014-11-02T01:47:21.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-02T01:54:31.000Z (about 10 years ago)
- Last Synced: 2024-05-02T01:54:26.614Z (7 months ago)
- Language: Rust
- Size: 172 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
Simple HW program in Rust
========================The program to write:
You are to write a program to interact with a data file of economic data. The data file has header information followed by the data. Each line of the data has a country name, the year represented by the data, amount of exports, balance of trade, population and geographical area of the world. Your program should offer the user choices of what to do. These choices include:
Finding the top 5 exporting countries for a given year
Finding the worst 5 exporting countries for a given year
Finding the 5 countries with the best balance of trade for a given year.
Finding the 5 countries with the worst balance of trade for a given year.
Finding the 5 countries with the best ratio of exports to balance of trade for a given year.
Finding the 5 countries with the worst ratio of exports to balance of trade for a given year.
One other interesting choice.Use the input file ./data/exports.txt
Note: the data file doesn't have complete information. This assignment is just
about learning a new computer language.