Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi, why do the output in red rectangle appear and how do I fix it? Thank you, will upvote for good answer! Xnip 14 #include

image text in transcribedimage text in transcribedimage text in transcribed

Hi, why do the output in red rectangle appear and how do I fix it?

Thank you, will upvote for good answer!

Xnip 14 #include 15 #include 16 #include 17 #include 18 #include 19 20 typedef std::vector<:string> str_vec; 21 22 23 const int YEAR_LOWER_BOUND = 1900; const int YEAR_UPPER_BOUND = 2021; const int ZODIAC_SIZE = 12; const int INPUT_LENGTH = 4; 24 25 26 27 28 class Chinese Zodiac { private: str_vec _zodiac_list = {"Monkey", "Rooster", "Dog", "Pig", "Rat", "Ox", "Tiger", "Rabbit", "Dragon", "Snake", "Horse", "Goat"}; 29 30 31 32 33 34 public: // Access private _zodiac_list str_vec get_zodiac_list() const { return _zodiac_list; } 35 36 37 38 39 40 41 42 43 // Take input of year of birth std::string get_year_input(std::string s) { std::cout YEAR_UPPER_BOUND) { std::cout tm_year + 1900) { n += 12; } 133 134 135 136 137 138 139 140 if (n == (tptr->tm_year + 1900)) { std::cout > a; std::cout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Define Synchro Marketing.

Answered: 1 week ago

Question

Define marketing concepts.

Answered: 1 week ago

Question

1 what does yellow colour on the map represent?

Answered: 1 week ago

Question

b. Will new members be welcomed?

Answered: 1 week ago