Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

/* ----------------------------------------------------------- Write a program [1 mark] ----------------------------------------------------------- __________________________________________________________ | Population | Class | ---------------------------------------------------------- | At least 5000 | Town | | At least

/*

-----------------------------------------------------------

Write a program [1 mark]

-----------------------------------------------------------

__________________________________________________________

| Population | Class |

----------------------------------------------------------

| At least 5000 | Town |

| At least 50000 | City |

| At least 10 Million | Super City |

----------------------------------------------------------

Write a program that asks the user to enter the number of

population of a town/city, then the program will display

its class.

The sample runs are as follows.

===============================

Sample Run:

Enter the population: 4500

It is a town.

===============================

Sample Run:

Enter the population: 50000

It is a city.

===============================

Sample Run:

Enter the population: 11000000

It is a super city.

===============================

-----------------------------------------------------------*/

// Write your program below:

#include

#include

using namespace std;

int main()

{

return 0;

}

Write a program in C++

Please solve this question

Thankyou In advance

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

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

10th Edition

0137916787, 978-0137916788

More Books

Students also viewed these Databases questions

Question

Describe the factors influencing of performance appraisal.

Answered: 1 week ago