joke-weather-app/WeatherReport.cpp

736 lines
14 KiB
C++
Raw Permalink Normal View History

2023-07-14 09:06:16 +00:00
#include <iostream>
#include <string>
#include <unistd.h>
#include "WeatherReport.h"
using namespace std;
/*void weatherReport(string weatherLocationInput) {
cout << endl;
cout << "Gathering Weather Data from " << weatherLocationInput << " Location..." << endl << endl;
usleep(3000000);
cout << "Idfk, go look outside yourself.." << endl;
system("pause");
}
*/
void findWeatherReport(string continent, string country) {
cout << "Caculating the weather for " << continent << ": " << country << "....." << endl << endl;
usleep(3000000);
cout << "Go look outside yourself you lazy human, you think ima just tell you for free? nah 5 bucks buddy..";
}
string continents(int responseNumberInput) {
switch (responseNumberInput) {
case 1:
return "Asia";
break;
case 2:
return "Africa";
break;
case 3:
return "North America";
break;
case 4:
return "South America";
break;
case 5:
return "Antarctica";
break;
case 6:
return "Europe";
break;
case 7:
return "Australia";
break;
default:
return "Invalid option";
break;
}
}
string asia(int responseNumberInput) {
switch (responseNumberInput) {
case 1:
return "China";
break;
case 2:
return "India";
break;
case 3:
return "Indonesia";
break;
case 4:
return "Pakistan";
break;
case 5:
return "Bangladesh";
break;
case 6:
return "Japan";
break;
case 7:
return "Philippines";
break;
case 8:
return "Vietnam";
break;
case 9:
return "Turkey";
break;
case 10:
return "Iran";
break;
case 11:
return "Thailand";
break;
case 12:
return "Myanmar";
break;
case 13:
return "South Korea";
break;
case 14:
return "Iraq";
break;
case 15:
return "Afghanistan";
break;
case 16:
return "Saudi Arabia";
break;
case 17:
return "Uzbekistan";
break;
case 18:
return "Malaysia";
break;
case 19:
return "Yemen";
break;
case 20:
return "Nepal";
break;
case 21:
return "North Korea";
break;
case 22:
return "Sri Lanka";
break;
case 23:
return "Kazakhstan";
break;
case 24:
return "Syria";
break;
case 25:
return "Cambodia";
break;
case 26:
return "Jordan";
break;
case 27:
return "Azerbaijan";
break;
case 28:
return "United Arab Emirates";
break;
case 29:
return "Tajikistan";
break;
case 30:
return "Israel";
break;
case 31:
return "Laos";
break;
case 32:
return "Lebanon";
break;
case 33:
return "Kyrgyzstan";
break;
case 34:
return "Turkmenistan";
break;
case 35:
return "Singapore";
break;
case 36:
return "Oman";
break;
case 37:
return "State of Palestine";
break;
case 38:
return "Kuwait";
break;
case 39:
return "Georgia";
break;
case 40:
return "Mongolia";
break;
case 41:
return "Armenia";
break;
case 42:
return "Qatar";
break;
case 43:
return "Bahrain";
break;
case 44:
return "Timor-Leste";
break;
case 45:
return "Cyprus";
break;
case 46:
return "Bhutan";
break;
case 47:
return "Maldives";
break;
case 48:
return "Brunei";
break;
default:
return "Invalid option";
break;
}
}
string africa(int responseNumberInput) {
switch (responseNumberInput) {
case 1:
return "Nigeria";
break;
case 2:
return "Ethiopia";
break;
case 3:
return "Egypt";
break;
case 4:
return "DR Congo";
break;
case 5:
return "Tanzania";
break;
case 6:
return "South Africa";
break;
case 7:
return "Kenya";
break;
case 8:
return "Uganda";
break;
case 9:
return "Algeria";
break;
case 10:
return "Sudan";
break;
case 11:
return "Morocco";
break;
case 12:
return "Angola";
break;
case 13:
return "Mozambique";
break;
case 14:
return "Ghana";
break;
case 15:
return "Madagascar";
break;
case 16:
return "Cameroon";
break;
case 17:
return "Côte d'Ivoire";
break;
case 18:
return "Niger";
break;
case 19:
return "Burkina Faso";
break;
case 20:
return "Mali";
break;
case 21:
return "Malawi";
break;
case 22:
return "Zambia";
break;
case 23:
return "Senegal";
break;
case 24:
return "Chad";
break;
case 25:
return "Somalia";
break;
case 26:
return "Zimbabwe";
break;
case 27:
return "Guinea";
break;
case 28:
return "Rwanda";
break;
case 29:
return "Benin";
break;
case 30:
return "Burundi";
break;
case 31:
return "Tunisia";
break;
case 32:
return "South Sudan";
break;
case 33:
return "Togo";
break;
case 34:
return "Sierra Leone";
break;
case 35:
return "Libya";
break;
case 36:
return "Congo";
break;
case 37:
return "Liberia";
break;
case 38:
return "Central African Republic";
break;
case 39:
return "Mauritania";
break;
case 40:
return "Eritrea";
break;
case 41:
return "Namibia";
break;
case 42:
return "Gambia";
break;
case 43:
return "Botswana";
break;
case 44:
return "Gabon";
break;
case 45:
return "Lesotho";
break;
case 46:
return "Guinea-Bissau";
break;
case 47:
return "Equatorial Guinea";
break;
case 48:
return "Mauritius";
break;
case 49:
return "Eswatini";
break;
case 50:
return "Djibouti";
break;
case 51:
return "Comoros";
break;
case 52:
return "Cabo Verde";
break;
case 53:
return "Sao Tome & Principe";
break;
case 54:
return "Seychelles";
break;
default:
return "Invalid option";
break;
}
}
string northAmerica(int responseNumberInput) {
switch (responseNumberInput) {
case 1:
return "United States";
break;
case 2:
return "Mexico";
break;
case 3:
return "Canada";
break;
case 4:
return "Guatemala";
break;
case 5:
return "Haiti";
break;
case 6:
return "Dominican Republic";
break;
case 7:
return "Cuba";
break;
case 8:
return "Honduras";
break;
case 9:
return "Nicaragua";
break;
case 10:
return "El Salvador";
break;
case 11:
return "Costa Rica";
break;
case 12:
return "Panama";
break;
case 13:
return "Jamaica";
break;
case 14:
return "Trinidad And Tobago";
break;
case 15:
return "Bahamas";
break;
case 16:
return "Jamaica";
break;
case 17:
return "Barbados";
break;
case 18:
return "Saint Lucia";
break;
case 19:
return "Grenada";
break;
case 20:
return "Saint Vincent And The Grenadines";
break;
case 21:
return "Antigua And Barbuda";
break;
case 22:
return "Dominica";
break;
case 23:
return "Saint Kitts And Nevis";
break;
default:
return "Invalid option";
break;
}
}
string southAmerica(int responseNumberInput) {
switch (responseNumberInput) {
case 1:
return "Brazil";
break;
case 2:
return "Colombia";
break;
case 3:
return "Argentina";
break;
case 4:
return "Peru";
break;
case 5:
return "Venezuela";
break;
case 6:
return "Chile";
break;
case 7:
return "Ecuador";
break;
case 8:
return "Bolivia";
break;
case 9:
return "Paraguay";
break;
case 10:
return "Uruguay";
break;
case 11:
return "Guyana";
break;
case 12:
return "Suriname";
break;
case 13:
return "French Guiana";
break;
case 14:
return "Falkland Islands";
break;
default:
return "Invalid option";
break;
}
}
string europe(int responseNumberInput) {
switch (responseNumberInput) {
case 1:
return "Russia";
break;
case 2:
return "Germany";
break;
case 3:
return "United Kingdom";
break;
case 4:
return "France";
break;
case 5:
return "Italy";
break;
case 6:
return "Spain";
break;
case 7:
return "Ukraine";
break;
case 8:
return "Poland";
break;
case 9:
return "Romania";
break;
case 10:
return "Netherlands";
break;
case 11:
return "Belgium";
break;
case 12:
return "Czech Republic (Czechia)";
break;
case 13:
return "Greece";
break;
case 14:
return "Portugal";
break;
case 15:
return "Sweden";
break;
case 16:
return "Hungary";
break;
case 17:
return "Belarus";
break;
case 18:
return "Austria";
break;
case 19:
return "Serbia";
break;
case 20:
return "Switzerland";
break;
case 21:
return "Bulgaria";
break;
case 22:
return "Denmark";
break;
case 23:
return "Finland";
break;
case 24:
return "Slovakia";
break;
case 25:
return "Norway";
break;
case 26:
return "Ireland";
break;
case 27:
return "Croatia";
break;
case 28:
return "Moldova";
break;
case 29:
return "Bosnia and Herzegovina";
break;
case 30:
return "Albania";
break;
case 31:
return "Lithuania";
break;
case 32:
return "North Macedonia";
break;
case 33:
return "Slovenia";
break;
case 34:
return "Latvia";
break;
case 35:
return "Estonia";
break;
case 36:
return "Montenegro";
break;
case 37:
return "Luxembourg";
break;
case 38:
return "Malta";
break;
case 39:
return "Iceland";
break;
case 40:
return "Channel Islands";
break;
case 41:
return "Isle of Man";
break;
case 42:
return "Andorra";
break;
case 43:
return "Faeroe Islands";
break;
case 44:
return "Monaco";
break;
case 45:
return "Liechtenstein";
break;
case 46:
return "San Marino";
break;
case 47:
return "Gibraltar";
break;
case 48:
return "Holy See";
break;
default:
return "Invalid option";
break;
}
}
string australia(int responseNumberInput) {
switch (responseNumberInput) {
case 1:
return "Australia";
break;
case 2:
return "Papua New Guinea";
break;
case 3:
return "New Zealand";
break;
case 4:
return "Fiji";
break;
case 5:
return "Solomon Islands";
break;
case 6:
return "Micronesia";
break;
case 7:
return "Vanuatu";
break;
case 8:
return "New Caledonia";
break;
case 9:
return "French Polynesia";
break;
case 10:
return "Samoa";
break;
case 11:
return "Guam";
break;
case 12:
return "Kiribati";
break;
case 13:
return "Tonga";
break;
case 14:
return "Marshall Islands";
break;
case 15:
return "Northern Mariana Islands";
break;
case 16:
return "American Samoa";
break;
case 17:
return "Palau";
break;
case 18:
return "Cook Islands";
break;
case 19:
return "Tuvalu";
break;
case 20:
return "Wallis and Futuna Islands";
break;
case 21:
return "Nauru";
break;
case 22:
return "Niue";
break;
case 23:
return "Tokelau";
break;
default:
return "Invalid option";
break;
}
}
/*
* THIS CODE WAS DESIGNED ENTIRELY BY HATSUNE PATRICK, .
* LEARNING BOOK IS PROGRAMING ABSTRACTIONS IN C++.
* FILE CONTAINS CHAPTER 2 LEARNING BLOCKS.
* i need to find something better to fucking do
*/