Hi guys. I have been studying for my C++ final in the coming week and I was trying to do this assignment but I couldnt figure out how to do one of the parts. How would you do this part:
Then, the program calculates the age of the user. Your program shows the full name and the age of the user and also determines if the user has reached the age of majority in his/her province.
The age of majority is 18 in six provinces: Alberta, Manitoba, Ontario, Prince Edward Island, Quebec, and Saskatchewan. The age of majority is 19 in four provinces and the three territories: British Columbia, New Brunswick, Newfoundland, Northwest Territories, Nova Scotia, Nunavut, and Yukon.
Im currently stuck at the majority of age part. How can I show that and determine if the user has reached the age of majority in his/her province? Are there any type of strings where I can put bunch of names into one string variable?