Question
/* ----------------------------------------------------------- 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started