Answer to Question #152635 in C++ for haroon

Question #152635
Write a C++ program which repeatedly asks the user to enter their contact numbers. Create a string
variable named “Phone_No” and take the input in the following pattern: “+92423672123” where the
first three characters represent country code (e.g., +92 as shown in the example pattern), next two
characters (e.g., 42 according the shown example number) represent the city code, while next 7
characters represent the actual number.
Your task is to display appropriate messages for the numbers belonging to three cities: Islamabad (having city
code 51), Lahore (city code 42), and Karachi (city code: 21). Any number having different country code or city
code must be reported as “Un-known number“. Please also ensure that the user must enter the number
according to the shown pattern only and the size of the input string must be 12 characters.
1
Expert's answer
2020-12-23T08:48:09-0500
Dear haroon, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment