// // main.cpp // Dog age bruh // // Created by Alin-Cosmin Dumitrescu on 17/02/2020. // Copyright © 2020 Alin-Cosmin Dumitrescu. All rights reserved. pls no steal im poor man // #include using namespace std; int main() { string dogname; cout << " What's your dogs name bruh?" << endl; cin >> dogname; int dogyear; cout << " What bout it's age bruh?" << endl; cin >> dogyear; int dogwkg; cout << " What's it's weight?" << endl; cin >> dogwkg; int dogwlb, humanyear ; dogwlb = dogwkg * 2.204623; int small[] = {15, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76, 80}; int medium[] = {15, 24, 28, 32, 36, 42, 47, 51, 56, 60, 65, 69, 74, 78, 83, 87}; int large[] = {15, 24, 28, 32, 36, 45, 50, 55, 61, 66, 72, 77, 82, 88, 93, 120}; if(dogyear < 1 || dogyear > 16) { humanyear = 0; cout << dogname << " is too ebic, u might wanna check that twice bruh" << endl; } else { if(dogwlb <= 20) humanyear = small[dogyear-1]; else if(dogwlb >20 && dogwlb<=50) humanyear = medium[dogyear-1]; else humanyear = large[dogyear-1]; cout << dogname << " is " << humanyear << " in human years" << endl; } return 0; }