Advertisement
Guest User

dog age bruh

a guest
Feb 17th, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. //
  2. // main.cpp
  3. // Dog age bruh
  4. //
  5. // Created by Alin-Cosmin Dumitrescu on 17/02/2020.
  6. // Copyright © 2020 Alin-Cosmin Dumitrescu. All rights reserved. pls no steal im poor man
  7. //
  8. #include <iostream>
  9. using namespace std;
  10.  
  11. int main()
  12. {
  13. string dogname;
  14. cout << " What's your dogs name bruh?" << endl;
  15. cin >> dogname;
  16. int dogyear;
  17. cout << " What bout it's age bruh?" << endl;
  18. cin >> dogyear;
  19. int dogwkg;
  20. cout << " What's it's weight?" << endl;
  21. cin >> dogwkg;
  22. int dogwlb, humanyear ;
  23. dogwlb = dogwkg * 2.204623;
  24. int small[] = {15, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76, 80};
  25. int medium[] = {15, 24, 28, 32, 36, 42, 47, 51, 56, 60, 65, 69, 74, 78, 83, 87};
  26. int large[] = {15, 24, 28, 32, 36, 45, 50, 55, 61, 66, 72, 77, 82, 88, 93, 120};
  27. if(dogyear < 1 || dogyear > 16)
  28. {
  29. humanyear = 0;
  30. cout << dogname << " is too ebic, u might wanna check that twice bruh" << endl;
  31. }
  32. else
  33. {
  34. if(dogwlb <= 20)
  35. humanyear = small[dogyear-1];
  36. else if(dogwlb >20 && dogwlb<=50)
  37. humanyear = medium[dogyear-1];
  38. else
  39. humanyear = large[dogyear-1];
  40.  
  41. cout << dogname << " is " << humanyear << " in human years" << endl;
  42. }
  43. return 0;
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement