Skip to content

MuhammadAhsan66/Weather-Man

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Weather-Man

A Practice project to learn    Ruby Language.

How to Run:

ruby weather_man.rb {-e | -a | -c | -b} {year | year/month} {path_to_file | path_to_fileFolder}

Where:

A - Option '-e' use to Display:

  • The highest temperature and day
  • The lowest temperature and day
  • The most humid day and humidity, of the given year

B - Option '-a' use to Display:

  • The average highest temperature
  • The average lowest temperature
  • The average humidity, of a given month

C - Option '-c' use to Display:

  • Two horizontal bar charts on the console
    • Red for highest Temperature
    • Blue for lowest temperature

D - Option '-b' use to Display:

  • One horizontal bar chart on the console
    • Red part for highest Temperature
    • Blue part for lowest temperature

Example:

TASK 1:

ruby weather_man.rb -e 2006 Murree_weather

TASK 2:

ruby weather_man.rb -a 2006/6 Murree_weather/Murree_weather_2006_Jun.txt

TASK 3:

ruby weather_man.rb -c 2006/6 Murree_weather/Murree_weather_2006_Jun.txt

Bonus TASK:

ruby weather_man.rb -b 2006/6 Murree_weather/Murree_weather_2006_Jun.txt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages