Question: in C++ please in C++ please cription Write a C++ code that defines the enumeration datatype Continent that represents continents across the globe. These continents

in C++ please in C++ please in C++ please cription Write a C++ code that

defines the enumeration datatype Continent that represents continents across the globe. These

continents are Asia, Africa. North America, South America. Antarctica. Europe, and Australia.

In addition, the code defines the structure City that stores information abouta given city. In particular, it stores the name of the city(having object string as datatype), its population, with int data type, andin C++ please

cription Write a C++ code that defines the enumeration datatype Continent that represents continents across the globe. These continents are Asia, Africa. North America, South America. Antarctica. Europe, and Australia. In addition, the code defines the structure City that stores information about a given city. In particular, it stores the name of the city (having object string as datatype), its population, with int data type, and the continent in which the city is located Towards that end, the developed program should implement the following items: -ctions The question text is given in the description section. You can use any of the following online compilers: Onlinegdb doodle Shell QUESTION 1 Write a suitable declaration for the Continent dataType. Notes: - The question text is given in the description section. The online compilers links are given in the instructions section. QUESTION 2 Write a suitable declaration for the City structure datatype. Notes: - The question text is given in the description section. - The online compilers links are given in the instructions section. QUESTION 3 15 points Write function setCity () that takes a reference parameter to a City and some values for name, population, and continent to initialize such a city setCity () returns in Notes: - The question text is given in the description section. - The online compilers links are given in the instructions section. QUESTION 4 20 points Write The function printCity that takes a reference to City and prints out the city details as shown below. printCity() must return an int. The format of its output should look as follows: The city name: Sharjah The city population: 500000 The city continent: Asia Notes: - The question text is given in the description section. - The online compilers links are given in the instructions section. QUESTION 5 15 points Write the function printAllCities () that takes an array of Cities, size of that array n and prints out all the cities within the array using the printCity () function Notes: - The question text is given in the description section. - The online compilers links are given in the instructions

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!